Peter
Peter

Reputation: 1

Is it possible to compile an iPhone App for IOS 4.0 using Xcode 4

Does anyone know how to compile an iPhone app targeting iOS 4.0 using Xcode 4?

It seems that it is only possible to select iOS 4.2 as target.

Thanks in advance

Peter

Upvotes: 0

Views: 422

Answers (1)

John Lemberger
John Lemberger

Reputation: 2699

There's a "Deployment Target" setting and a "Base SDK" setting. You can set the deployment target by clicking on the project name at the top of the tree, then bring up the "Summary" page. Deployment Target is the 4th item, and can be set to 4.0.

"Base SDK" is on the "Build Settings" page and is usually the latest SDK you have installed, but can be set to older SDKs if you go to the trouble to keep them around. Normally you shouldn't need to though, because apps built with newer SDKs should run on older iOS versions as long as you restrict your coding to the older API.

So an app built with the 4.2 SDK should run fine on iOS 4.0 if you set the deployment target to 4.0 or earlier and don't use any methods introduced after 4.0.

See also:

Upvotes: 5

Related Questions