[aerogear-dev] Creation of static library and framework for aerogear-push-ios-registration

Erik Jan de Wit edewit at redhat.com
Mon Apr 7 05:37:58 EDT 2014


This error is because of the CONFIGURATION_BUILD_DIR try TARGET_BUILD_DIR instead
On 7 Apr,2014, at 11:20 , Erik Jan de Wit <edewit at redhat.com> wrote:

> I’ve tried to build with this script but it doesn’t work. I was also in the progress of creating a script that would do exactly the same to release the push plugin and always include the latest aerogear-push-ios-registation release as a binary
> 
> This is the error I get:
> 
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: -dynamic not specified the following flags are invalid: -ObjC 
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -lPods
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -lPods is not an object file (not allowed in a library)
> Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool failed with exit code 1
> 
> 
> On 7 Apr,2014, at 10:53 , Andrea Vibelli <avibelli at redhat.com> wrote:
> 
>> 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/
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> _______________________________________________
>> aerogear-dev mailing list
>> aerogear-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/aerogear-dev
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/aerogear-dev/attachments/20140407/6b455ff0/attachment.html 


More information about the aerogear-dev mailing list