PerfectlySoft / PerfectlySoft/Perfect-MySQL

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

Open
#49 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
126
Forks
58
Avg merge
25m
Merged PRs (30d)
1

Description

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?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the exported Products/usr/local/bin/BaseballLive executable and its archived dependency layout, focusing on the missing @rpath/PerfectMySQL.framework/Versions/A/PerfectMySQL path. Determine how the SwiftPackageManager dependency is packaged for an archive, then verify that the exported executable runs without the dyld library-not-found error.

Written by the indexing model from the issue text.

Assessment

Tech stack
mysql, swift
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.