Should I distribute executables as universal i386+x86_64?

Discussion in 'Mac Programming' started by printz, May 14, 2013.

  1. macrumors regular

    Joined:
    Dec 23, 2012
    #1
    Is there still a demand for executables supporting i386? Or can I just build for x86_64 only? OSX 10.8 Xcode defaults to x86_64 only, but all versions before that I've had defaulted to universal. I'm concerned of occupying disk space just for this compatibility. Since many Macs use SSDs, I think it matters.

    Are there many Intel 32-bit Macs with Snow Leopard support?
     
  2. macrumors 6502a

    Tander

    Joined:
    Oct 21, 2011
    Location:
    Johannesburg, South Africa
    #2
    Personally I think stick with the x86_64 route. Every new MacBook or iMac that comes out supports 64 bit. No point hanging around in the past - move with the present.
     
  3. macrumors 6502a

    spyguy10709

    Joined:
    Apr 5, 2010
    Location:
    One Infinite Loop, Cupertino CA
    #3
    [​IMG]


    LOL jk

    actually, I'd go i386 and x64, just because it's only a few megabytes more, you'll support people that may not be on the latest system. It's a good developer practice.
     
  4. macrumors 603

    ArtOfWarfare

    Joined:
    Nov 26, 2007
    #4
    Depends. If users are going to want your app installed on all of their computers, then support i386. If your users only need one or two copies of your app, then I think you'll be safe with x86_64 only.

    (IE, Battery Status is supposed to let you monitor all of your wireless devices associated with all of your Macs... So I support i386 for people like me who still have Dino macs that get used maybe weekly, but need their batteries changed every few months.)
     
  5. thread starter macrumors regular

    Joined:
    Dec 23, 2012
    #5
    In my case it is an open-source port based on a very old game, so it runs smoothly even on decade-old computers (it's also cross-platform). Thus I believe that not only I had better support i386, but also try to make it work on old OSX. And if I have the means, also support PowerPC (but probably on another executable :p)
     
  6. macrumors G5

    gnasher729

    Joined:
    Nov 25, 2005
    #6
    The biggest problem with x86 support is that you can't use many modern Objective-C features, you can't use the 10.8 SDKs, so at some point it holds you back. If size is the only consideration, I wouldn't worry about that. But as an example, you can't use ARC on x86, so if you want to use that, x86 is out. Personally, you are removing machines built in 2006, and the owners are _not_ going to pay any money for new software. And experience shows that the tightest people who will _never_ part with a penny will be the most vocal ones demanding things from you, for free.
     
  7. macrumors 6502

    Madd the Sane

    Joined:
    Nov 8, 2010
    Location:
    Utah
    #7
    I myself have a header that will make code both ARC and MRC compatible. This may be complicating things, but it is possible. You have to set the 64-bit build option only for it to work, though. And GC and ARC don't like each other.

    To my knowledge, the only x86_64-only framework is GLKit. But GLKit also only runs with OpenGL 3.
     

Share This Page