Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ConAim

macrumors newbie
Original poster
Jul 10, 2008
22
0
I'm running into this issue when trying to compile with an addition system lib file *.dylib (which is also available on iPhone SDK under /usr/lib). I used Add to Framework and successfully compile and run on emulator, but when trying to switch over to Device, it ran into linking issue with the lib.

What is the proper way to add an system *dylib?
 

ghayenga

macrumors regular
Jun 18, 2008
190
0
I'm running into this issue when trying to compile with an addition system lib file *.dylib (which is also available on iPhone SDK under /usr/lib). I used Add to Framework and successfully compile and run on emulator, but when trying to switch over to Device, it ran into linking issue with the lib.

What is the proper way to add an system *dylib?

You have to create a new copy build phase that will copy it to the Frameworks folder of your .app, or if there is one already then add that dylib to it.
 

lovemj21

macrumors newbie
Aug 29, 2008
1
0
Link issue with *.dylib on Device mode

Hi,

I have the same problem. (I'm using xos 10.5,x3.1)

so I've created a new copy build files phase. it's created in the Targets folder. Do I need to set destination & subpath in the copy files phase info?
in the Frameworks folder I have my dylib file.
still I have the problem. :mad: any other advice for me??
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.