PDA

View Full Version : Link issue with *.dylib on Device mode




ConAim
Jul 20, 2008, 04:10 PM
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
Jul 20, 2008, 06:51 PM
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.

ConAim
Jul 20, 2008, 09:00 PM
Omg, it does work perfectly. Thanks!!!

lovemj21
Aug 29, 2008, 03:46 AM
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??