Build for armv6 architecture (target iOS 3.1.3) with iOS 6 SDK and Xcode 4.5?

后端 未结 2 1712
失恋的感觉
失恋的感觉 2020-12-03 03:52

is there a chance to use the iOS 6 SDK to develop applications that target iOS 3.1.3? If I open my project with the old deployment target, the compiler warns me:

<         


        
相关标签:
2条回答
  • 2020-12-03 04:34

    oonoweb's answer is correct regarding iOS SDK 6.0. It's not possible to support below iOS 4.3 while building against iOS 6 SDK, but it is possible to use Xcode 4.5 to continue to build for armv6 and target iOS 4.2.1 and below.

    The trick is to build against iOS 5.1 SDK instead of 6.0. Note: you won't be able to use any of the new iOS 6 specific features if you do this:

    chpwn's blog lays out the steps, which I've re-written:

    • Download Xcode 4.4.1 from Apple Developer Downloads (you don't need to instal it)
    • Open the .dmg, right click on Xcode.app, 'Show Package Contents'
    • Find the iOS 5.1 SDK within that package at: Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/
    • Copy this SDK
    • Open the package contents of Xcode.app (4.5), and paste the 5.1 SDK in the location: Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/
    • Open your project in Xcode 4.5. Go to your Target > Build Settings tab > Base SDK, and choose iOS 5.1 from the dropdown
    • Again in Build Settings tab > Valid Architectures - remove armv7s if it's there, and add armv6 if it's not there already.
    • Go to the Info tab > Deployment Target, and type 3.1.3 (or whatever you're supporting down to) into the dropdown (the option won't be there, but you can type it in).
    • You can now delete Xcode 4.4.1 .dmg if you don't want to install it.

    You'll get warnings about talking about no rule to process files for armv6. Nate has recently posted this answer to deal with those.

    If you're creating a new project (instead of maintaining old ones) you may also need to view the ***-Info.plist file, and remove armv7 from the 'Required Device Capabilities' if it's there.

    0 讨论(0)
  • 2020-12-03 04:35

    With Xcode 4.5 (ie iOS 6 SDK) the lowest version you can build for is iOS 4.3. I guess it is time for your 3.1.3 customers to upgrade.

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