• On TV.com: TOP 10 Shows CANCELED Too Soon
advertisement
Click Here
January 20, 2006 7:55 AM PST

Stripping Universal Binaries of Intel code -- a potential troubleshooting procedure for PowerPC Macs

by CNET staff
  • Font size
  • Print
  • 6 comments

It seems 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.

This workaround may be especially applicable for Mac OS X 10.3.9 systems.

A new application called TrimTheFat is is a simple, silent drop-launch utility to strip the code for the architecture(s) you're not using from a Universal application

Meanwhile, MacFixIt reader Frank Kittie offers a terminal based series of commands, with iTunes as the example application:

  • sudo ditto --rsrc /Applications/iTunes.app /tmp/iTunes.app
  • sudo rm -rf /Applications/iTunes.app
  • sudo ditto --arch ppc --rsrc /tmp/iTunes.app /Applications/iTunes.app
  • sudo rm -rf /tmp/iTunes.app

Frank writes:

"This should replace the iTunes application with a copy of itself, the copy containing only PowerPC code. The "--arch ppc" strips all code for other architectures.

"For me the resulting application ran fine (in a quick cursory test) and a repair permissions no longer gave me the 'Disk Utility lost connection with Disk Management Tool and cannot continue.'

Feedback? Late-breakers@macfixit.com.

Resources

  • TrimTheFat
  • Late-breakers@macfixit.com
  • More from Late-Breakers
  • Recent posts from MacFixIt
    Address Book: Search not working properly
    iTunes 9.0.3 breaks AirTunes connection for some
    Apple releases Aperture 3.0
    Manage iCal's automatic e-mail generation for invitations
    CNET TV Apple Byte: Apple faces critics
    Weekly Utilities Update: Net Monitor, MiniUsage, TimeMachineEditor, more...
    Odds and Ends: Essential video codec packs for OS X
    Address Book: Unable to add, view contacts
    Add a Comment (Log in or register) (6 Comments)
    • prev
    • next
    by aamann January 20, 2006 9:11 AM PST
    I think that the "official" way to go about this would be to use lipo instead. This also removes the need to copy the file around twice...
    Reply to this comment
    by MacFixItUser January 20, 2006 12:58 PM PST
    I just installed iLife '06 on my PowerPC.

    Is there any advantage of stripping the Intel code out?

    Will my applications run faster, better? Will I save a lot of memory?

    If my application(s) crash once in a while, should I try to strip the Intel code out?

    Is there any DANGER of doing this?
    Reply to this comment
    by Mark Douma January 20, 2006 12:58 PM PST
    >
    This is a reply to a previous comment by MacFixIt User


    "Will my applications run faster, better?"

    Absolutely not. Only the PPC code is executing before you strip and only the
    PPC code is executing after you strip. No difference.

    "Will I save a lot of memory?"

    The amount of RAM the application will take up while running? Absolutely no
    difference. The small amount of disk space that the intel code takes in the
    executable? Little more than a couple of MB for each application.

    "If my application(s) crash once in a while, should I try to strip the Intel
    code out?"


    Absolutely not. It won't make any difference, as I mentioned before, only the
    PPC code is executing before you strip and only the PPC code is executing
    after you strip. No difference.
    Reply to this comment
    by tim.rinkel January 21, 2006 7:59 AM PST
    Any chance this may screw up future updates the way moving an app out of the
    Applications directory has done in the past?
    Reply to this comment
    by Greg_Weston_572 January 21, 2006 7:59 AM PST
    >
    This is a reply to a previous comment by tim.rinkel


    Just about any change has a chance of screwing up an updating process. I don't expect this one is particularly likely to cause problems, though, because I don't think most update creators are going to go to the effort of doing surgery on embedded files, opting instead to replace them with the fresh, now-updated, copy.

    TTF 0.5 should be out in a couple of days and offer a non-destructive mode (it makes a stripped copy instead of working in-place).
    Reply to this comment
    by Ilgaz January 22, 2006 2:56 AM PST
    Allume Spring Cleaning 8 does this with a HUGE warning that it _may_ create
    problems with future updates and software update.

    It has a "backup" option while this workaround does not have.
    Reply to this comment
    (6 Comments)
    • prev
    • next
    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