iOS: Is there absolutely no way to build for armv6 in Xcode 4.5?

前端 未结 4 2007
醉话见心
醉话见心 2021-02-14 16:32

Starting with Xcode 4.5 the possibility of building for armv6 devices is not given anymore (iPhone/iPod touch 1st and 2nd generation). This means no new versions of our app for

相关标签:
4条回答
  • You can have multiple versions of xcode installed. In the past, that has been the fix needing to use an older xcode feature.

    It is a workaround, and the project files may eventually evolve in a way that no longer supports the older tools, but for the time being, that will allow you to build for older targets.

    If you have a single project that you want to work with in both versions of XCode, then you may end up having to manage separate project control files via source control tricks and/or file shuffling.

    I would also recommend that project structure changes and binary file management (e.g. Core Data models) happen via the old version, as XCode 4.5 will be backward compatible, but forward compat is rarely assured.

    0 讨论(0)
  • 2021-02-14 17:05

    You can add the string "armv6 armv7" as architecture. Do not select a predefined setting.

    0 讨论(0)
  • 2021-02-14 17:17

    There's another solution I found in chpwn blog: Building for armv6 in Xcode 4.5.
    This allows you to work with Xcode 4.5 but compile using 5.1 SDK. The downside: you can’t use the iOS 6 SDK when using this trick, and you can’t build for armv7s.

    0 讨论(0)
  • Yes, there are workarounds. If you need to actually take advantage of new iOS 6 features, try either of the first couple answers to this related question. The first answer requires using both Xcode 4.4 and 4.5. If you never want to have to open Xcode 4.4, then use the second answer.

    If you just want to be able to build an executable in Xcode 4.5 that works on armv6, armv7 and armv7s devices, without actually taking advantage of new iOS 6 SDK APIs, then you can see my answer to another question, which is much simpler ... but has the limitation that you can't take advantage of new iOS 6 features on iOS 6 devices.

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