Perfect-MySQL icon indicating copy to clipboard operation
Perfect-MySQL copied to clipboard

dyld: Library not loaded: @rpath/PerfectMySQL.framework

Open chrisschlitt opened this issue 6 years ago • 1 comments

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?

chrisschlitt avatar May 12 '19 03:05 chrisschlitt

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.

kjessup avatar May 12 '19 15:05 kjessup