|Jun 19, 2009, 01: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, 09: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|
|How to access and use a dylib in an Obj-C application?||MatthewF||Mac Programming||0||Feb 26, 2011 02:25 PM|
|Use *.dylib from ScreeSaver?||freeman-1387||Mac Programming||4||Jan 17, 2011 10:44 AM|
|including dylib in application bundle (carbon)||printf||Mac Programming||14||Dec 3, 2008 09:11 AM|
|Using Cocoa elements through dylib in c++ app||tohihaho||Mac Programming||5||Sep 23, 2008 04:44 AM|
|how to create new window using xcode in a same application?||chidambaram||Mac Programming||5||Apr 11, 2008 10:39 AM|
All times are GMT -5. The time now is 06:39 AM.