Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jun 19, 2009, 12:54 AM   #1
harkathmaker
macrumors newbie
 
Join Date: Jun 2009
Using .dylibs in applications

Hi,

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?
harkathmaker is offline   0 Reply With Quote
Old Jul 8, 2009, 08:28 AM   #2
vishvesh
macrumors newbie
 
Join Date: Mar 2008
Location: India
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
Vishvesh
vishvesh is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
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

Forum Jump

All times are GMT -5. The time now is 09:29 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC