yonaskolb / Mint

A package manager that installs and runs executable Swift packages
MIT License
2.26k stars 122 forks source link

Support for Binary Dependencies via Xcframework #190

Open leogdion opened 3 years ago

leogdion commented 3 years ago

I'm not sure this is related to #48 but I have a Swift package executable which uses an xcframework binary swift package. Inevitably when installing via mint I get this:

dyld: Library not loaded: @rpath/CairoSVG.framework/Versions/A/CairoSVG
  Referenced from: /usr/local/bin/speculid
  Reason: image not found

I am open to suggestions. Thanks

LooKiN4ETHICALHACKER commented 3 years ago

I hope this helps these are a few comments I have found on this topic Please check the .framework If there is a _CodeSignature signature framework directory. If there is no _CodeSignature folder, Navigate to the Build Phases ,click + to add New Copy File Phase to create Copy Files. after that, reference .framework and choose Code Sign On Copy

Or

I had this problem before in iPod touch iOS 9.3. And I used all the methods mentioned in this post, but none of them worked. I checked my project setting. And in the other link flag, I found I added -Wl,-sectcreate,RESTRICT,restrict,/dev/null.

This flag prevents dyld insert in the jailbroken phone. When I delete this flag, the app can be launched again. I am not sure why it worked. Because in iPhone se iOS 10 I don't have to delete this line. But it did work in iPod touch iOS 9.3. So check it if you have the same situation like me.

Sent with GitHawk