how to stop xcode5.1 building for 64bit

后端 未结 2 1639
独厮守ぢ
独厮守ぢ 2020-12-01 03:16

I just updated to xcode 5.1 - apple decided to make all apps compile to 64bit by default - My app has some legacy code and I spent the last couple of hours figuring out how

相关标签:
2条回答
  • 2020-12-01 03:56

    Or just use $(ARCHS_STANDARD_32_BIT)

    0 讨论(0)
  • 2020-12-01 03:58

    OP is posted the solution along with the question itself. But I feel it would be better to add it as an answer. In Xcode 5.1 apple made significant changes to the architecture section. They made arm64 as part of Standard architectures. That means the projects using the default setting will be automatically build for arm64 also. So what you will do if your app does not support arm64?.

    Doc says:

    Projects not able to support 64-bit need to specifically set the architectures build setting to not include 64-bit.

    How to do that?

    1. Goto Targets-->Build Settings-->Architectures-->Architectures

    2. Double click on the architecture will popup a menu. Choose others

      enter image description here

    3. Delete the existing row - $(ARCH_STANDARD). Add the required architectures one by one

      enter image description here

    4. Now your architecture section will look like this

      enter image description here

    0 讨论(0)
提交回复
热议问题