Adding dynamic library soft links
Adding dynamic library soft links
- Subject: Adding dynamic library soft links
- From: Carl Hoefs <email@hidden>
- Date: Fri, 15 Jan 2016 11:44:39 -0700
Xcode 7.2
Many 3rd party OS X dynamic libraries, (e.g. Mac Ports), get installed with the following type of soft link arrangement on disk:
lrwxr-xr-x 1 root admin 15 Aug 28 13:04 libform.dylib -> libform.6.dylib
-rwxr-xr-x 1 root admin 58864 Aug 28 13:04 libform.6.dylib
-rw-r--r-- 1 root admin 101064 Aug 28 13:04 libform.a
When adding dynamic libraries to my OS X project (using the Target -> Build Phases -> Link Binary With Libraries window), Xcode resolves "libform.dylib" to the specific version, "libform.6.dylib", and adds that string instead to the build phase.
The problem is when using different machines that have different versions of the libraries. I have to manually drop the nonexistent libraries and re-add them to pick up the latest version that's installed on the machine before I can build.
Is there a way I can have Xcode simply retain the "libXXXX.dylib" string without resolving it until build time? Or is the only way to avoid this to use the static archive "*.a" form of the library, which doesn't include the version number, but loses the benefits of using dynamic libraries?
-Carl
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden