Xcode11 dyld: Library not loaded ... Reason: image not found
I had same problem. You should add a Copy File phase in your Build Phases as follows:
Under Build Phases, click on +
icon to add new phase, and select New Copy Files Phase
.
Drag the newly created Copy Files phase above Compile Sources
phase
In the new Copy Files phase, select Frameworks
for Destination
drop down.
Leave subpath
blank. Let be default Copy only when installing
.
Under the table, click '+' and then select your Framework, i.e. VoiceSampler.framework
Make sure Code Sign on Copy
is checked (ticked).
Do a clean build.
General->Frameworks, Library, and Embedded Content. If it's "Do Not Embed", change to "Embed Without Signing".
There is another simpler solution which worked for me if you are using Cocoapods.
In your Podfile, add use_frameworks! after your Target line like this -
target 'YourAppName' do
use_frameworks!
Basically it adds all your pods as a framework in your framework folder.