yonaskolb / Mint

A package manager that installs and runs executable Swift packages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for Binary Dependencies via Xcframework

leogdion opened this issue · comments

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

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