16

I am developed one application in ios 4.2. I try to test that application in iphone 3g. In that process error will occur like

"The Info.plist for application at /Users/gvrao/Desktop/BabyCryApp/build/Debug-iphoneos/BabyCryApp.app specifies a minimum OS version of 4.2, which is too high to be installed on iphone 3g"

And change the version in iphone development target to 3.1.3. But it was not working. Please tell me how to solve this problem.

Abizern
  • 146,289
  • 39
  • 203
  • 257
simbesi.com
  • 1,539
  • 3
  • 17
  • 27
  • From the command line, use `-mios-version-min=3.1`. – jww Oct 03 '15 at 17:51
  • This feels churlish to close this question imho, it's clear what the question is and that the asker of the question's first language is not English. In these situations I would hope rather than close the question the person thinking about doing so would just clean up the question instead. I found both the question and the answer useful fyi. – Agent Zebra Jun 30 '16 at 04:25

2 Answers2

38

You need to set the Deployment target in the build settings to the minimum iOS version you require.

A general guideline is to set:

  • Base SDK to latest
  • deployment target to the minimum version you support.

Also - check your Info.plist file for the MinimumOSVersion key.

Abizern
  • 146,289
  • 39
  • 203
  • 257
  • And what is in your Info.plist file? – Abizern Jun 14 '11 at 10:50
  • 8
    Please don't use **MinimumOSVersion** in the Info.plist file. As you can find in the [Information Property List Key Reference](http://developer.apple.com/iphone/library/documentation/General/Reference/InfoPlistKeyReference/Articles/LaunchServicesKeys.html#//apple_ref/doc/uid/TP40009250-SW18): MinimumOSVersion (String - iOS). When you build an iOS app, Xcode uses the iOS Deployment Target setting of the project to set the value for the MinimumOSVersion key. **Do not specify** this key yourself in the Info.plist file; it is a system-written key – Fabiano Francesconi Jan 21 '13 at 08:54
  • 4
    @FabianoFrancesconi I didn't say write to it, I said check it. :) – Abizern Jul 26 '13 at 08:41
  • Hi @FabianoFrancesconi I am not using XCode to build my app(i am using phonegap build with javascript, html and css) so therefore im not sure how the minimum version will be set.. My app is only compatible with ios8.0 upwards. I know I can set plist values in my config.xml file... Do you advise I use LSMinimumSystemVersion for this? – Sarah Feb 22 '17 at 14:57
  • @Sarah yes go for something similar to ` 7.0 ` – Fabiano Francesconi Feb 22 '17 at 19:55
0

Do you get build errors when you try to build for version 3.1.3 in xcode.

iOS4 SDK has a lot of features that possibly are not featured in older versions of the the firmware.

Andy
  • 1
  • 1
  • The Info.plist for application at /Users/gvrao/Desktop/BabyCryApp/build/Debug-iphoneos/BabyCryApp.app specifies a minimum OS version of 4.2, which is too high to be installed on iphone 3g – simbesi.com Jun 14 '11 at 10:45