Xcode 3.1.3(with SDK iPhone 3.0 GM Seed) Error "Can't install application" with iPhone 2.2.1 - Fixed
Trying to install my app to iPhone 2.2.1, but it fail with following message:
The Info.plist for application at /Users/satoko/repos/ezPhotoMail/build/Debug-iphoneos/ezPhotoMail.app specifies a minimum OS version of 3.0, which is too hight to be installed on satoko の iPhone
###Check the Base SDK in target
If "Base SDK" is set to "iPhone Device 3.0", it could no be installed to iPhone 2.2.1 or former. But My target's "Base SDK" was OK.
###Two target, two Info.plist
Then suddenly my instincts tells me: Wait, there's another *.plist file for second target!
Well, there's two targets in this project: currently selected target's Base SDK is "iPhone Device 2.2.1" , the other one's is "iPhone Device 3.0".
Maybe that's the problem, I thought. Here's my action:
- I deleted below:
- second-target
- second-Info.plist(used in second-target)
- Then clean up caches:
- Clear target
- Close the project
- delete build directory
- re-open the project and build/run with my iPhone 2.2.1...
- Voila! It worked!