简体   繁体   中英

How can I make an iPhone OS 2.1 project with the new Xcode?

Problem: I want to make iPhone OS 2.1 apps, but Xcode now always makes automatically an iPhone OS 3.0 project. I forgot about it and now I have an app which I want to test on my iPod touch, but I need to build OS 2.1. Is there a way to get this working?

The dropdown from top left in Xcode only offers to build for OS 3.0 device. However, when I open old projects, there I have OS 2.1 available.

Go to Project > Edit Project Settings.

Then select the General tab (although it should be selected by default.

Select the SDK you want at 'Base SDK for all configurations'.

Should do the trick...

You can use the new SDK and still build for an older OS. Go to Target ---> Deployment and then set IPHONEOS_DEPLOYMENT_TARGET = 3.0. (or whatever value you'd like)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM