I am not very used to compiling frameworks, so I may miss something.
I tried to build SFBAudioEngine as a XCFramework for iOS and iOS Simulator, and integrate it in my iOS App.
Everything wen't right at compile time (both for compiling the framework, and the app).
But at runtime on my simulator or physical device, I had a crash at startup of my app, with the following problem :
dyld: Library not loaded: @rpath/FLAC.framework/FLAC
Referenced from: /Users/Library/Developer/Xcode/DerivedData/...
Reason: image not found
After searching on the web, I guessed it may be linked to the case of the framework name (flac.framework vs FLAC.framework).
And after more research, I changed the following file :
XCFrameworks/flac/Makefile
And change the first line :
FRAMEWORK_NAME := flac
with
FRAMEWORK_NAME := FLAC
And now my app starts without crashing
As said before, I am a newbie with frameworks (I usually use Cocoapods without really knowing what it does in the background), so I did not make any Pull Request since I am not very sure of what I did ;).
But if this fix is OK for you, that could same time for other people like me.
I am not very used to compiling frameworks, so I may miss something.
I tried to build SFBAudioEngine as a XCFramework for iOS and iOS Simulator, and integrate it in my iOS App. Everything wen't right at compile time (both for compiling the framework, and the app). But at runtime on my simulator or physical device, I had a crash at startup of my app, with the following problem :
After searching on the web, I guessed it may be linked to the case of the framework name (flac.framework vs FLAC.framework). And after more research, I changed the following file : XCFrameworks/flac/Makefile
And change the first line :
FRAMEWORK_NAME := flac
withFRAMEWORK_NAME := FLAC
And now my app starts without crashing
As said before, I am a newbie with frameworks (I usually use Cocoapods without really knowing what it does in the background), so I did not make any Pull Request since I am not very sure of what I did ;).
But if this fix is OK for you, that could same time for other people like me.