Perfect-MySQL
Perfect-MySQL copied to clipboard
dyld: Library not loaded: @rpath/PerfectMySQL.framework
I have a project that uses PerfectHttpServer and PerfectMySQL (added using SwiftPackageManager).
Everything works fine when I run the app in Xcode, however when I generate an archive and export the build products, I get the following error when trying to run the executable:
dyld: Library not loaded: @rpath/PerfectMySQL.framework/Versions/A/PerfectMySQL
Referenced from: /Users/chris/Documents/archive/Products/usr/local/bin/BaseballLive
Reason: image not found
What do I need to do in order to run the executable?
If you are including in an iOS or Mac app project you will want to switch the SPM generated projects to build as static libraries.