Hi,
I am trying to understand X-Code way of building universal
binary for 32-bit/64bit of a library.
Here’s what I do:
-If I set the active configuration to Debug and compile my
static library, I get 130 files compiling. I have 130 files in my project, so
everything works as expected.
-When I select the Release config and I try to build, I get
530 files compiling??? I guess that it is trying to compile the code for 4 architectures.
However, in the build setting of the project, I have specified i386 and x86_64
only, so it should only build two architectures, so 260 files. Since, I have
intel optimized code, my release build doesn’t compile.
The weirdest thing is that I also tried to used the command
line interface of xcode : “xcodebuild”. With xcodebuild it compiles
and link the release configuration for i386 and x86_64 only.
Is it a bug, or there is some build settings that I am
missing.
It is not the first time it happens to me. Last time, I have
re-created a XCode project from scratch and it fixed the problem. However, I
can’t imagine that this is the only solution.
By the way, I have installed the IPhone SDK, it is not clear
whether XCode try to build my code for PPC or for the iPhone.
Stephane