I have a library that used with iOS and it works with iPhone simulator and the device. When I run the file command on the library I get:
libXXX.a (for architecture armv6): current ar archive random library
libXXX.a (for architecture i386): current ar archive random library
Now I want to use the same library for my OSX app. I set the architecture to 32-bit i386. However I get a few compilation errors:
Undefined symbols for architecture i386:
".objc_class_name_RTMPClient", referenced from:
pointer-to-literal-objc-class-name in AppDelegate.o
I'm not sure if the error is because library was originally developed for iOS (the headers all had UIKit references I had to delete but seemed extraneous as there was no UI functionality .. it was just a library for opening/connecting to RTMP servers) -- or is it a linking error? In general can you use i386 architecture libraries developed for iPhone with Mac apps?