views:

477

answers:

2

I'm trying to install an ad hoc-provisioned iPhone app compiled under the 3.1.2 SDK on a device running iPhone OS 3.0 via iTunes. I'm getting a message "The application was not installed because it requires a newer version of iPhone OS." The build settings for the project are "iPhone Device 3.0 (Base SDK)" and "Distribution." The app successfully installs on devices running 3.1.2.

Is it possible to build for OS 3.0+ with the 3.1.2 SDK (rather than just 3.1.2)?

A: 

There are two settings you must pay attention to:

  • Base SDK: "The product will be built against the headers and libraries of this version of the SDK."
  • iPhone OS Deployment Target: "Code will load on this and later versions of iPhone OS."

Any chance your Deployment Target is set to iPhone OS 3.1?

Ole Begemann
Hi Ole, Thanks for your note. Both are set for OS 3.0. The install also fails for 3.1 (anything pre-3.1.2).
vellum
A: 

Build > Clean All Targets, then building again solved the problem. Thanks to Ole, who indirectly reminded me that I should do this.

vellum