PerfectlySoft / Perfect-MySQL

A stand-alone Swift wrapper around the MySQL client library, enabling access to MySQL servers.
https://www.perfect.org
Apache License 2.0
127 stars 62 forks source link

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

Open chrisschlitt opened 5 years ago

chrisschlitt commented 5 years ago

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?

kjessup commented 5 years ago

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.