ios - Undefined symbols to framework when building application separated to library and application part -


i have application separated library part , application links library. library uses afnetworking, , requires systemconfiguration , mobilecoreservices frameworks. added build process , library builds nicely.

why need add same frameworks application part in order build , not see linking errors?

is not enough link library?

i assume library static library. adding frameworks when building static library in order access include files; not linking frameworks. because static library not linked when it's built; it's collection of object files. try command line list object files:

$ ar t /path/to/my/library.a 

when static library linked app binary must provide libraries , frameworks of both, if object files in static library had been part of app binary source tree.

just think of static library simple collection of object files , should make sense you.


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -