Quantcast
Channel: User trojanfoe - Stack Overflow
Viewing all articles
Browse latest Browse all 208

Answer by trojanfoe for Xcode 5 how to Linking Dynamic Libraries from App Bundle

$
0
0

Content/Libraries is not a standard directory within an app bundle; use Contents/Frameworks instead (.dylibs are allowed in that directory just the same as .frameworks).

Set the Install Name of each library to @rpath/libWhatever.dylib and set the Runpath Search Path of the executable (in Contents/MacOS) to @loader_path/../Frameworks.

For library interdependencies then Runpath Search Path will need to be simply @loader_path so dependent libraries can be loaded from the same directory.

EDIT: People might find the copy_dylibs.py script in this repo useful for copying third-party .dylibs into the App Bundle. It recursively hunts for libraries that need copying and corrects the Install Name of the libraries as well as code-signing them.


Viewing all articles
Browse latest Browse all 208

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>