Jump to content

Embed a dynamic library or Framework in an iphone app


2 posts in this topic

Recommended Posts

Did anyone achieve this ?

 

Here is what I did:

1/I created a static Library target for iPhone using the choose panel for targets.

2/ Changed the MAC-O type from 'static' to 'dynamic'

3/ Set the install path to @loader_path/ (also tried @executable_path/ with same results)

 

In the main app:

4/ linked to this library, added a Copy phase and choosed 'Executable' in the popup with no subpath , added the lib to this phase.

5/ built both targets.

 

It compiles fine , the main app launches and then crashes with the first call to a method included in the library. (Unrecognize selector ... blabla)

 

What the matter ? How can I check if the library code is loaded or not ?

 

Thanks for any help.

Link to comment
Share on other sites

 Share

×
×
  • Create New...