vendredi 24 octobre 2008

Universal library for iPhone and Mac (or iPhone simulator)

use lipo tool to create from n architectures libraries a universal library:
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/lipo -create libcurl-iphone.a libcurl.a -output libcurl-universal.a 
this will create a file called libcurl-universal.a which can be linked against an iPhone executable or a Mac executable.
Of course it works with all architectures (ppc, 32/64 bits, etc...)

Aucun commentaire: