objective c - Creating one static library for iOS and simulator for distribution -


if create static library ios have distribute header file(s) or there way work?

currently have single my_lib.a file both device , simulator when drag test app use it, says can't find header , places i'm using in code undeclared. figure i'm either doing wrong, or have send appropriate header files it.

background process:

i've seen 2 guides creating static library both device , simulator. 1 on site: build fat static library (device + simulator) using xcode , sdk 4+

and 1 here: http://mark.aufflick.com/blog/2010/11/19/making-a-fat-static-library-for-ios-device-and-simulator

i used second site try out. i'm bit curious if did correctly. went release-iphone(os|simulator) folders , found .a in ios 1 , .o in simulator one.

the short answer yes, have package header files static library. have package header files library in fact, dynamic or static. library contains compiled code, still have tell compiler identifiers in library when it's compiling code knows exist.

if care, can package static library static framework little care. create same directory structure dynamic framework has, .a file in place of .dylib (or .so) file. frameworks contain directory headers, can distribute binary , headers single package, , can import headers framework without messing additional header search paths build setting.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -