Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
chrisschlitt opened this issue May 12, 2019 · 1 comment
Open

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

chrisschlitt opened this issue May 12, 2019 · 1 comment

Comments

@chrisschlitt
Copy link

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
Copy link
Member

kjessup commented May 12, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants