Why can't I build a Universal Binary?

Discussion in 'Mac Programming' started by Thomas Harte, Nov 29, 2006.

  1. Thomas Harte macrumors 6502

    Nov 30, 2005

    I have a MacBook Pro Core Duo 2.16Ghz running OS X v10.4.8. On top of that I have Xcode 2.4.1 installed. I want to make my project as a Universal Binary, but it seems that no matter what I do all I get is an Intel-specific binary.

    If I go to Project->Project Settings I can verify that my target SDK is "Mac OS X 10.4 (Universal)" in the General tab, and in the Build tab I have both i386 and ppc set as architectures, as shown in these two screenshots:


    However, if I clean & rebuild then go to my application in the bundle and get Info it shows that it is purely an "Application (Intel)". Similarly, PowerPC users have complained that it doesn't work on their machine.

    The only possibly weird thing about my application is that it is SDL based. I have checked the SDL framework I have installed and am embedding and it is a Universal build.

    So what might I be doing wrong?
  2. szymczyk macrumors regular

    Mar 5, 2006
    Two things to check.

    1. Make sure you build with the Release configuration. Xcode will not create universal binaries for debug builds.
    2. Make sure the deployment target is set to Mac OS X 10.4.
  3. cMacSW macrumors regular

    Mar 20, 2006
    In the build settings, your last screenshot, you need to edit the Architectures setting to include PPC.
  4. Thomas Harte thread starter macrumors 6502

    Nov 30, 2005
    Right, in case anybody should find this thread through a search and have a similar problem — I had ppc and i386 set as platforms for both the Development and Deployment builds, but somewhere along the line ZeroLink had been enabled for the Deployment build. And it seems that prevents a Universal Binary build, which is perfectly understandable.
  5. tominated macrumors 68000


    Jul 7, 2006
    Queensland, Australia

Share This Page