Tuesday 28 September 2010

lipo Makes You Fat

Ever had to link in an external library for your iPhone project?
Did you receive a big headache having to switch between the simulator version and the iphone version of the library?

Yes?

Well, this is for you, run the lipo command, and it'll magically embed both versions into one FAT library.

And fear not, the linker will only link in the required version.

Example usage of lipo with "libSkinny"..
 lipo -output build/libFatty.a -create build/Release-iphoneos/libSkinny.a build/Release-iphonesimulator/libSkinny.a  

So it's official.. Lipo makes you fat. Well in the geek world anyway.
http://en.wikipedia.org/wiki/Lipo

1 comment:

  1. APTIMASTERS is basically an online aptitude site which provides the help for the students to make their aptitude skills more enhanced so that they can overcome the entrance examinations for CAT,MAT,UPSC ,Placement Exams etc .

    ReplyDelete