Static Libraries on iPhone device

Posted by Akusete on Stack Overflow See other posts from Stack Overflow or by Akusete
Published on 2009-01-05T23:24:57Z Indexed on 2010/05/03 6:58 UTC
Read the original article Hit count: 304

Filed under:
|
|

I have two projects, a Cocoa iPhone application and a static library which it uses.

I've tested it successfully on the iPhone simulator, but when I try to deploy it to my iPhone device I get (symbol not found) link errors.

If I remove the dependancy of the library the project builds/runs fine.

I have made sure all the build settings are set to iPhoneOS not the simulator.

Im sure its something simple, but has anyone run into similar problems moving from iPhone simulator to device?

--EDIT: I have managed to create new projects (one for the application and one for the static library), and successfully get them to run on the iPhone or simulator. But I have a very strange problem... for each specific project I cannot get it working for BOTH the device and the simulator... I have double checked the build settings, made sure the libraries that are being references are for the matching build settings (I believe) but I cannot resolve these linking errors.

I think I must be doing something very wrong... all the apple documentation says 'its super simple - one click' but this is giving me a lot of problems.

This is probably something to do with xCode build settings, but I cannot seem to understand why selecting the different build platforms and rebuilding the libraries does not work.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about xcode