Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Thomas Harte

macrumors 6502
Original poster
Nov 30, 2005
400
4
Hi.

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:

Picture1.png

Picture2.png


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?
 

szymczyk

macrumors regular
Mar 5, 2006
187
17
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.
 

cMacSW

macrumors regular
Mar 20, 2006
180
0
In the build settings, your last screenshot, you need to edit the Architectures setting to include PPC.
 

Thomas Harte

macrumors 6502
Original poster
Nov 30, 2005
400
4
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.