• On MovieTome: See the villain of IRON MAN 2!
advertisement
mySimon mySimon mySimon Outdoor Gear mySimon Swimwear mySimon Home and Garden
January 26, 2006 8:05 AM PST

Stripping Universal Binaries of Intel or PowerPC code (#2): Simplified Terminal command, more information

by CNET staff
  • Font size
  • Print
  • Post a comment

We previously noted that the presence of Intel code in Universal binaries can cause some troubleshooting issues. For instance, a problem we've been covering where the presence of iTunes 6.0.2 causes Disk Utility to be unable to run can be solved by stripping the application of its Intel-based code.

In our previous coverage, we noted an application called TrimTheFat -- a simple, silent drop-launch utility to strip the code for the architecture(s) you're not using from a Universal application. We also noted a Terminal command for stripping Intel-code from Universal applications.

We've since corresponded with the author of TrimTheFat, who offers a more succinct Terminal command for removing either Intel or PowerPC code:

  • cd /Applications;sudo ditto --arch [architecture to be stripped] iTunes.app iTunes-thin.app

(where [architecture to be stripped] is either "ppc" or "i386")

In the above example, a new file called "iTunes-thin.app" will be created that is missing either PowerPC (ppc) or Intel (i386) code.

The author of TrimTheFat also notes that ditto apparently drops some file metadata:

"ditto does not preserve file flags (see chflags(1)) including uchg, which corresponds to 'locked' elsewhere in the system."

Feedback? Late-breakers@macfixit.com.

Previous coverage:

Resources

  • TrimTheFat
  • Late-breakers@macfixit.com
  • Stripping Universal Binari...
  • More from Late-Breakers
  • Recent posts from MacFixIt
    Pixelated or fuzzy icons in Snow Leopard
    Snow Leopard: iChat restricting minimum chat window width
    Hack enables 10.6.2 on Atom processors
    Weekly Utilities Update: WhatSize, CoolBook, VisualRoute, more...
    Overcoming missing Appletalk printer connectivity in Snow Leopard
    Terminal fun: Options for printing folder and subfolder contents
    Aperture How-To: Add a watermark to your photographs
    Snow Leopard: Finder not opening files when double-clicked

    Navigate MacFixIt

    • Help
    • Archives
    • Utilities
    • Forums
    advertisement
    Click Here

    About MacFixIt

    MacFixIt is CNET's troubleshooting resource for all things Mac. The information here helps you navigate the ins-and-outs of Mac ownership with how-tos, troubleshooting information, news, reviews, and more.

    Add this feed to your online news reader

    MacFixIt topics