Creating universal binary using XCode 4.0

4.1k views Asked by At

I have installed XCode 4.0 in my system recently. I need to create universal binary for one of my Desktop app. How do I do this in XCode 4.0?

Thanks and Regards, Deepa

1

There are 1 answers

1
Mecki On

To build a binary for more than one "architecture" at the same time, select in the build settings which architectures shall be used for release builds and then make a release build, which means in Xcode 4, first create a second scheme that builds release (since your default scheme most likely builds debug), select this scheme and build it. Or was universal binary referring to a binary with Intel and PPC code? Well, in that case the answer is: Xcode4 does not support PPC any longer. Officially you have to use Xcode3 to create binaries that contain code for Intel and PPC architectures. Xcode4 only supports two Mac architectures: Intel 32 bit and Intel 64 bit; however a build configuration can be configured to build for both of these at the same time and put the code into a single binary, which would also be some kind of universal binary.

You can bring PPC support back to Xcode4 as described here, but you should really know what you are doing before you are applying hacks like that one.