Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do i remove the ppc section in growl framework?

Now i add growl notification support into my app ,when i submitted it to mac app store with organizer,it says that " Unsupported Architecture - Application executables may support either or both of the Intel architectures:

i386 (32-bit) x86_64 (64-bit) " Finally i find that its issue by growl library, so i need to remove the ppc section in growl,so,how to? Please help..

like image 260
NeXT5tep Avatar asked Apr 21 '11 03:04

NeXT5tep


1 Answers

Use the lipo command line utility, which strips architectures off fat binaries (what an appropriate name). First, check which architectures there are in your Growl framework:

$ lipo -info path/to/Growl.framework/Growl
Architectures in the fat file: Growl are: x86_64 i386 ppc

In this case, we simply have ppc, but there are about 10 variants (of which I've met 3). To avoid any surprise, you should run this command any time you want to strip architectures from a file instead of just jumping to the removal part. (If you're curious, man 3 arch has the exhaustive list of possible architectures for fat binaries on Mac OS.)

Then, remove the ppc achitecture:

$ lipo -remove ppc path/to/Growl.framework/Growl -output GrowlIntel

Find the real Growl binary (should be under Versions somewhere) and replace it with GrowlIntel.

like image 147
zneak Avatar answered Sep 20 '22 03:09

zneak