Mark Snow Posted April 25, 2008 Share Posted April 25, 2008 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 https://www.insanelymac.com/forum/topic/101492-embed-a-dynamic-library-or-framework-in-an-iphone-app/ Share on other sites More sharing options...
stroke Posted April 27, 2008 Share Posted April 27, 2008 You can't use a Mach-O (x86/PPC) compiled binary or library on the iphone. They need to be ARM. Link to comment https://www.insanelymac.com/forum/topic/101492-embed-a-dynamic-library-or-framework-in-an-iphone-app/#findComment-726653 Share on other sites More sharing options...
Recommended Posts