Any one have any idea how to build a universal binary with Xcode for OS X? I know how to build on PPC...and figured it was just as simple as checking the "Build Universal" check-box... but that appears not to be the case. I can build an Intel version just fine...but I want to make my build (with all the OS X patches) available for PPC users, too.
Thanks.
Building a Universal Binary
-
Topic authorBlindedByTheLight
- Posts: 485
- Joined: 19.03.2005
- With us: 19 years 8 months
- Location: Los Angeles, CA
Building a Universal Binary
Steven Binder, Mac OS X 10.4.10
-
- Developer
- Posts: 3776
- Joined: 04.02.2005
- With us: 19 years 9 months
To compile a Universal build, you must be running the latest Xcode on Tiger 10.4+, and also have the Mac OS X 10.2.8 and 10.4 Universal SDK's installed (use the Xcode installer to install these if you haven't already).
In the xcodeproj, select Universal_Release as your active build configuration (from the toolbar, or Project > Set Active Build Configuration).
The build will take nearly twice as long on single core machines but this is normal.
In the xcodeproj, select Universal_Release as your active build configuration (from the toolbar, or Project > Set Active Build Configuration).
The build will take nearly twice as long on single core machines but this is normal.
In general, you can make any build configuration generate universal binaries by changing its 'architectures' settings. Double click a target to bring up its target info and go to the build tab. Select 'Release' in the configuration option (or whichever build configuration you want to change). From 'Collection' select 'Architectures' (under 'General'). You should now see an architectures setting. Double click on this and you should see check boxes that let you select 'PowerPC' and/or 'Intel'.
Of course, as dirkpitt says, you need the 10.4 sdk installed.
You can use the 'file' command from the Terminal to verify wether an application is a universal binary or not. You need to apply it to the exectuable in the app bundle, not the bundle itself as follows:
file myApplication.app/Contents/MacOS/myApplication
Of course, as dirkpitt says, you need the 10.4 sdk installed.
You can use the 'file' command from the Terminal to verify wether an application is a universal binary or not. You need to apply it to the exectuable in the app bundle, not the bundle itself as follows:
file myApplication.app/Contents/MacOS/myApplication
Glad to hear this is happening
I've been using celestia onon my macs for a couple of years now 1.4.1 now (isn't there a 1.4.2?) I would love to still be able to use it when i upgrade to theh next Pro desktop version with a much better video card. i have a 466GHz with a 128MB card... slow but beaautiful... now a 1.25GHz mini with a 32MB card....... fast but.... not as beautiful. I don't want to upgrade to a consumer machine again.... yeesh that was stupidtz! lol I want my fast... but i want pretty too LOL! ok.. i'll be keeping an eye out.
"then He smiled at me...pa-rump-a-pum-pum..... me and my drum"