开发者

Target 4.1 devices from latest Xcode

开发者 https://www.devze.com 2023-01-26 16:26 出处:网络
So latest update came out for iOS today and although I\'ve run into this before I\'ve sort of managed but now that I\'m doing a lot of testing it is driving me nuts.

So latest update came out for iOS today and although I've run into this before I've sort of managed but now that I'm doing a lot of testing it is driving me nuts.

Is there a way to still deploy to devices running 4.1? I 开发者_如何学编程can't set the project settings to any other base SDK other than 4.2 and I can't deploy to devices running 4.2 if I don't upgrade.


Yes. In the Build Settings, there's a value called "iOS Deployment Target". You can set this to an older version of iOS. Note that this does not prevent you from using new features of iOS 4.2, so you have to be careful, as if you do so it will throw a runtime error on the older OS.


There's actually a couple of places, and the settings can be different for your Debug, Release and Deployment configs.

So you can go to: Project info - Deployment - iOS deployment target. ('Delete' if it's bold and it will go to the default of the base SDK)

These are overridden by the target settings, so check them too. Target (double click on the target icon) - Deployment - iOS deployment target

This way you can do your debugging on 4.2 or 4.1 without changing your release build config until you have any bugs resolved!

0

精彩评论

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