I'm fairly new to Xcode as I use CocoonJS to build my HTML5 iPhone game but I want to know how to correctly set the minimum iOS version. I've set my deployment target to 8.0 and did a clean and then a build but when I submit to the app store it says the minimum iOS version is 6.0.
The next thing I tried was manually updating this value in the info.plist but then I get an invalid binary in iTunes Connect saying
Minimum OS Version Mismatch - The minimum OS version (LC_VERSION_MIN_IPHONEOS) in the binary ('6.0') for architecture ('armv7') differs from the MinimumOSVersion ('8.0') in the Info.plist
How do I update the minimum iOS version correctly without screwing up my binary? I've checked other threads but they all just say to update just the deployment target.
Assuming you're building against the 8.x SDK, and you have set the deployment target to 8.x or higher, that'll be enough.
However, I'd imagine you set the deployment target the wrong place in Xcode. You'll need to set it under your Project and not under your Target. Alternatively, if you have a .xcconfig file, you can change it by setting
IPHONEOS_DEPLOYMENT_TARGET = 8.1
If you don't have a .xcconfig, you can verify the deployment target, by opening your project.pbxproj file, and search for IPHONEOS_DEPLOYMENT_TARGET, and check if it's set to your expected value.
If you have Xcode .xcworkspace setup, say coming from ReactNative background, you would need to make sure:
iOS Deployment Target set to 14.1 or whatever version you want to be minimum inside the Project > Build Settings > Deployment for all instances.
iOS Deployment Target set to 14.1 or whatever version you want to be minimum inside the Target > Build Settings > Deployment for all instances.
The deployment info in Target > General > Deployment Info is set to the minimum support version before the iPhone checkmark.
To Verify the minimum version is set properly.
Archive the project.
Validate and Distribute the Development version of the app.
Locate the folder where the ipa was exported
Open the .ipa with some archive utility software (example The unarchiver)
Drag or Open the Info.plist in any code editor
Search for MinimumOSVersion and check whether the minimum os version reflects the required version.
Even after updating the Deployment Targets the archive doesn't update with the set version, force exit xcode and re-open the workspace/project. Check if the settings from previous session were applied, look for every instance where 14.x or whatever the current minimum version is present and update to the one required. Probably quit the Xcode once again and re-open. Generate the archive again and it should be reflect this time.
Related
I just submitted a sticker app from Xcode and am getting this error:
SDK Version Issue - This app was built with the iOS 12.0 SDK. Starting
March 2019, all iOS apps submitted to the App Store must be built with
the iOS 12.1 SDK or later, included in Xcode 10.1 or later.
I'm using XCode 10.1, and I understand how to change the deployment target, but is that different than the Base SDK?
How do I change my Base SDK, and do I need to change my deployment target as well? (In my Project Settings, it's currently set at 10.3)
I’d suggest validating your settings by selecting the top level project in the “Project Navigator” and then choose “Editor” » “Validate Settings...”. This can sometimes find and remedy outdated Base SDK settings:
If that doesn’t do it, go to your “target settings”, select the target, and then explicitly set the “Base SDK”. In my case, in Xcode 10.1, choosing “iOS” automatically chooses the latest, iOS 12.1:
But, no, “Base SDK” and “Deployment Target” are two different things. The “Deployment Target” is the minimum OS version that you plan on supporting. You should feel free to leave that set to 10.3, or whatever minimum OS version you plan on supporting.
Needless to say, if you have two versions of Xcode installed on your machine, make sure you’re firing up the latest version (Xcode 10.1 at this point). Sometimes if you just double-click on the project/workspace in Finder, it might not be starting up the version of Xcode you think it is.
I'm developing an iOS app. A certain app has been released in the App Store with the Deployment Target iOS7.
I am introducing some new feature to my app which support IOS8. So want to change my App Deployment Target to IOS8.
So i have to change baseSDK or not? or what type of changes i have to make in my app.
i want to know will it be able to release to the App Store?
Here's a link from where i get some idea but still not clear .
1) Base SDK refers to the newest version of iOS that is capable of running your app. To check which base SDK you are building your app against, simply open your project file in Xcode and check the setting under Build Settings -> Architecture(...)
2) Deployment Target refers to the oldest version of iOS that is capable of running your project. To change your deployment target, open up your project file in Xcode and check the setting under Build Settings -> Deployment(...)
3) The base SDK is what you build your app against (i.e. include and library files and frameworks). It doesn't affect the deployment target, except that base SDK >= Deployment Target.
4) So you just need to change your app Deployment Target and then change your app Version and Build and then upload the app on app store.
Change the minimum deployment target(as you mentioned iOS 8 to current version),
Update app version(as you mentioned 8.0) & Change build
version too(else you will get message something like from build already exist while uploading).
Finally generate IPA file for App Distribution. Move .ipa file to iTunes using App Loader or Xcode(via selecting upload to app store option).
In iTunes select option to add version which is shown in left side.Now fill meta data of an app. Once your build reviewed were done successfully. You can able to see in Build selection in iTunes.
I am trying to run an application I am developing on an iPhone that runs iOS 10.2.1. I also tried to run it on a simulator that runs iOS 10.2. My Xcode version is 8.3.3. Even though I changed the deployment target to 8.0, I get the following error when I try to run it on a device under 10.3. Are there other things I should pay attention when changing the deployment target other than changing it from Info tab in Xcode? The error states the deployment target as 10.3 but it is not. How can I get around this issue?
"Run destination is not valid for running the scheme.."
My deployment target
Thank you,
I remember the same issue happening in my code.
In my case, I realized that I had not updated my Base SDK to the latest iOS version in the Build Settings
To do so, click on Project name -> Build Settings -> Base SDK
If Base SDK does not show, ensure that "All" is selected in the filter at the top of the page.
Also, sometimes the project has multiple targets and you might be setting the Base SDK on the wrong target.
You need to update your iphone to the newer version or downgrade your xcode version. Currently they are out of sync thus why you are seeing this error.
See here for compatibility:
https://developer.apple.com/library/content/releasenotes/DeveloperTools/RN-Xcode/Chapters/Introduction.html
I submitted an app to iTunes 7 days ago. Its status is "Waiting For Review"
I set iOS Deployment Target as 6.0 in the project's settings:
I did not do anything about minimum os version or deployment sdk in info.plist file:
I archived and submitted my app to iTunes Connect. Today, when I check Binary Details of my app, I see this, "Minimum OS Requirements : 5.0":
Why is there a difference between my iOS Deployment Target and Minimum OS Requirements? Did I do something wrong? (e.g. info.plist edit?)
If I did something wrong, what should I do? Should I reject my binary, submit a new one and reset the review queue? Or should I contact Apple?
Most likely you have set the "Deployment Target" to iOS 5.0 for your target. The target level settings will override any project level setting. Either remove the target level setting or update the target level setting to the proper value.
What you did, regarding the 6.0, is only say that's the deployment to be set as, not the MINIMUM deployment. I'd say go back, check your info.plist, and check to see that the minimum os version is set to 6.0. Your min os version in your info.plist is probably set to 5.0
I submitted my app yesterday and i want this to run on iOS 6.0 and later operating systems.I have set the Deployment Target to 6.0 and Base SDK to Latest iOS(iOS 7.1).Is it ok?
Furthermore i would like to know which is the right selection for storyboard file in File Inspector Tab and in Interface Builder Document Section.Here is a screenshot:
I have chosen Project Deployment Target(6.0) for Builds For option.Is there any problem with this?Where does this option refers to?Cause there is an option iOS 6.0 and later also to choose.So which of these two options i have to choose?
I have set the Deployment Target to 6.0 and Base SDK to Latest iOS(iOS
7.1).Is it ok?
YES
I have chosen Project Deployment Target(6.0) for Builds For option.Is
there any problem with this?
NO, Its just a minimum target.