Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
717 views
in Technique[技术] by (71.8m points)

iphone - can i change my iOS deployment target to 5.0 on xcode 4.5?

I developed iPhone app using base SDKs as 6.0 and deployment target as 6.0

Now i want to change my deployment target to 5.0 instead of 6.0

is it possible to change ?

I have used feature of autolayout in xcode 4.5

and

I have one doubt: I have heard that if i develop app using deployment target of iOS 5 and with launch image of Default-568h@2x.png for iPhone 5 apple will reject my app..(Reason : Invalid Launch Image - You app contains a launch image with a size modifier that is only supported for apps built with the iOS 6.0 SDK or later) but for support of iPhone 5, i have to supply image Default-568h@2x.png image. how to solve this problem ?

Thanks for the reading of question.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

You don't need to change the base SDK to change the deployment target. Just change it to 5.0 under your target options:

enter image description here

Note that autolayout and some other features are available only on SDK 6.0.

Edit for XCode 7+

The tab is now called General, and the Deployment target is under Deployment info:

XCode 7


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...