Tag Archives: ar

remove a symbol from multiple platform Mach-O file

For Mach-O fat binaries that contains multiple platforms, stripping symbol may not work as you would expect.
So you have to extract the executables/libraries from Mach-O and thin it using lipo. Then you can remove the .o file you don’t like by “ar -d <.a> <.o>” or strip the symbol by “strip” which is no longer necessary.
After that, do the reverse steps to pack it back to a multiple platform Mach-O file.

Well, this post *may* be the last post this year.

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Google Buzz (aka. Google Reader)