开发者

Using Xcode 4 to create Universal binary

开发者 https://www.devze.com 2023-03-03 13:41 出处:网络
I\'ve used this hack to restore PPC support to Xcode 4. However, every time I tried to create a universal binary, it would just create an Intel binary. After a lot of experimentation with parameters,

I've used this hack to restore PPC support to Xcode 4.

However, every time I tried to create a universal binary, it would just create an Intel binary. After a lot of experimentation with parameters, I think I found the solution.

I had to set the Architectures and the Valid Architectures settings to ppc i386 x86_64

It then seems I have to explicitly set the compiler version to GCC 4.2, rather than LLVM GCC 4.2 which it defaults to.

So my qu开发者_如何学JAVAestion is, are there any implications to doing this?


I don't think there is any implications by doing this:

  • Architectures and Valid Architectures only control the binaries generated as well as the resulting fat binary. They are mainly arch flags.
  • selecting GCC 4.2 instead of LLVM GCC 4.2 is not necessary in my opinion; there are only few cases where the LLVM GCC 4.2 does not match the GCC 4.2 features.
0

精彩评论

暂无评论...
验证码 换一张
取 消