Nate Silva

Aug 27 2006

Xcode won’t build a universal binary for old projects

If you have an old Xcode project (like one of Apple’s samples) you may want to build it as a universal binary that will run natively on either PowerPC or Intel architectures.

To do this, you would double-click on the project name in Xcode, then choose the Build tab, and then highlight Architectures and click Edit. Then choose both i386 and ppc architectures. So far, so good: it looks like you are going to get a Universal binary. But when you build the project and Get Info on the resulting executable, you’ll see that it’s not.

To fix this, select your Target (under Targets in the main file-listing panel), and then from the XCode menu choose Project > Upgrade To Native Target. Now you should be able to build a universal binary.

Found on: Cocoabuilder.com

Page 1 of 1