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
Post a Comment