[aerogear-dev] Creation of static library and framework for aerogear-push-ios-registration
Andrea Vibelli
avibelli at redhat.com
Mon Apr 7 04:53:48 EDT 2014
Hi all,
for those who are not able or willing to use Cocoapods, it would be nice to distribute a static binary library of aerogear-push-ios-registration.
In order to support multiple platforms without the need to create multiple configurations or build products, I think that the best way would be to create a universal binary (aka fat library) that contains the object code for both architectures (device + simulator) and the public headers files.
Going further, from the universal library it could be possible to create a framework, that would bring everything together into one package (a directory with a known structure). Packaging a library as a framework simplifies things for developers because it not only provides a binary to link against but it includes all of the necessary header files to reference as well.
I have tried to create a script that builds a universal static library first and then a framework (putting together some links [1],[2],[3],[4]), is anybody willing to help to check it and test the built bits inside the cordova-push-plugin?
You can find the script here: https://github.com/vibe13/aerogear-push-ios-registration/blob/master/universal_lib-framework_build.sh
The script should be placed inside the project root and run: ./universal_lib-framework_build.sh
Thank you
Andrea
[1] http://www.meonbinary.com/2013/07/creating-universal-ios-framework
[2] http://spin.atomicobject.com/2011/12/13/building-a-universal-framework-for-ios/
[3] https://github.com/jverkoey/iOS-Framework
[4] http://www.cocoanetics.com/2010/04/making-your-own-iphone-frameworks/
More information about the aerogear-dev
mailing list