i have build a XYZ.framework package for iOS with the folowing folder-structure:
ls XYZ.framework
XYZ -> Libraries/libxyz.a
Headers -> Home/Headers
Home -> SDKs/Current
Libraries -> Home/Libraries
SDKs
ls XYZ.framework/SDKs
4.2
Current -> 4.2
ls XYZ.framework/SDKs/Current
Headers
Libraries
It works fine with one .a library file.
But how to include more than one .a library file?
0) iOS does not allow you to publish dynamic libs at this time (unless that’s a recent change)
1) set up your framework’s project to include the dependencies
2) add the depends to the build invocation (target dependencies) and link phase.
3) if your framework creates no objects (e.g. exports no symbols, or compiles no files), then you may need to add a dummy file with something such as an inline function (or the image’s constructor/destructor).
4) then link to the static depends to produce the final image. this step should merge all images.