|Jun 19, 2009, 12:54 AM||#1|
Using .dylibs in applications
I am trying to use a .dylib file in an Xcode project. In the example I am following, there is a custom script added:
install_name_tool -change /usr/local/lib/libirrklang.dylib @executable_path/libirrklang.dylib "$TARGET_BUILD_DIR/$PRODUCT_NAME"
It changes the directory where Xcode searches for the .dylib from a certain directory to the same place as the created file.
This works for a Carbon shell target, but not for an application. I was wondering, is there a way to accomplish this same thing with a .app target?
|Jul 8, 2009, 08:28 AM||#2|
right click the carbon target,
select add-> new build phase->new run script build phase
in new window opened add the following
install_name_tool -change /usr/local/lib/xyz.dylib /path/xyz.dylib "appName"
install_name_tool -id /path/xyz.dylib xyz.dylib
It should work fine after this
"None of us is as good as all of us "
have a great day
|Thread Tools||Search this Thread|
|thread||Thread Starter||Forum||Replies||Last Post|
|Applications||grahamt||iOS 7||3||Jun 13, 2013 05:21 AM|
|Applications in OS X||76ShovelHead||OS X||3||Dec 7, 2012 09:32 PM|
|Where are my applications?||stringtheorist||OS X 10.8 Mountain Lion||2||Aug 31, 2012 12:23 PM|
|Problems with linking to Boost dylibs in Xcode||TastyCocoa||Mac Programming||2||Aug 17, 2012 04:58 AM|
|Must Have Applications||phas3||MacBook Pro||2||Jun 21, 2012 02:35 AM|
All times are GMT -5. The time now is 06:14 PM.