I heard that a new version of iOS came out the other day, and wanted to know if my React Native project would be using that version by default when I build it with XCode, and if not, how can I force it to?
My Questions Are:
1) How do you check what version of iOS a React Native app is using?
2) How do you update the version of iOS in a React Native app?
UPDATE:
Based on #Simon's answer, I have one more question:
3) What determines the default version that a given project has?
Use Xcode to change an iOS project's target target iOS version. XCode > Project Navigator > "General" tab > Deployment Info > Target. You will the "ios/Quevera.xcodeproj/project.pbxproj" file will now have an entry like "IPHONEOS_DEPLOYMENT_TARGET = 11.0;".
Go to ios folder and then go to Podfile. At the top, find ios version and change it.
Related
I'm trying to build my Xamarin Forms app for the Apple store using Xamarin Studio on my MacBook. This worked fine until recently.
The only options available to me on the SDK version dropdown on the iOS Build tab are Default and 8.3. If I build using either of these and try to upload to the store I get the following error:
ERROR ITMS-90068: "This bundle is invalid. The value provided for the
key MinimumOSVersion '8.3' is not acceptable."
I guess this is due to updating all Xamarin and Xcode components to their latest versions recently.
I'm trying to figure out how to get the 8.2 SDK back.
I tried downloading the iOS 8.2 Simulator from Xcode > Preferences > Downloads but that doesn't seem to have added anything in the Xamarin SDK version dropdown.
Any ideas?
You're confusing the SDK version used to build your app with and the minimum iOS version your app requires.
It's perfectly possible to build an app using the iOS 8.3 SDK and target iOS 5.1.1 for instance.
You need to set the minimum iOS version for your app instead of changing the SDK version; this is done in the project's iOS Application options, by setting Deployment Target to your app's minimum iOS version.
This is what I did to resolve the issue:
Right click on the .iOS project > Options
Set Build > iOS Build > Link behaviour to Link Framework SDKs Only.
I have updated my mac with ios7 xcode 5... ui is change... can i build my pp with older version. i mean is there any seeting which will allow me to build my app on older version from new one.
Thanks
AFAIK .. The only way to do this will be to download the older SDKS and link them to XCode.
With iOS7 SDK you can still set your deployment target to iOS6 and things like Autolayout etc will work.
Really supporting older versions of the SDK might actually not be worth it since API deprecations etc might cause your app to break in the real world.
I found solution to my problem after doing experiments... hope this is correct as result is what i wanted...
i copied all SDK from my old Xcode 4.6 folder after opening content package folder and then found SDKs inside to my new Xcode5 folder.
then i got option to change base SDk was showing both SDK for new and old ios. selected for 6.1 and also deployment target to 6.1....and yes i got my UI back ....everything was same that for ios6.1.
hope i will not get any issue when i will upload it on itunes...
Set your deployment target to 6.0 in your Xcode5 project.
Build & Archive your project to create an .ipa file.
Install it in your iOS7 device using iTunes.
My app has historically supported iOS 5 & up. We just recently decided to drop support for iOS 5. I removed support from the app by doing the following:
Clicking on the project's target
Searching for iOS Deployment Target in Build Settings
Setting that value to iOS 6.0
However, when I look at the list of possible simulators from the scheme dropdown, I'm still able to choose iOS 5.0 and iOS 5.1.
I'm worried this means I may have not actually set the minimum supported version of my app to 6.0. My app will crash on anything pre-iOS 6, since we've begun to use Auto Layout for some new views. Any new projects only show the latest simulators as scheme targets.
What am I missing? How do I get this dropdown to stop showing me the iOS 5.0 and 5.1 simulator options?
You are not missing anything. Setting the Deployment Target will determine the minimum version required for installation of the app.
I don't know of any way to hide an irrelevant target from the scheme dropdown.
This question already exists:
Closed 10 years ago.
Possible Duplicate:
How can i change my iOS SDK
I have xCode 4.3.3 and iOs SDK 5.1
I need to be iOS SDK 4.3. How can i change my sdk? may be you have links on same problem? Thanx
In the project settings there are two fields called Base SDK and Deployment Target. Your Base SDK should be latest available (currently 6.0) and your Deployment Target can be the desired version (4.3).
Go to Preference And Check Whether The iOS SDK 4.3 is installed or Not or else you can download and install.
Xcode-> Preferences-> Downloads
Here you can see the List of available Downloads. then click on install.
After Download installation finish Just Restart X-code.
Then Select your deployment target.
Project --> info-->iOS Deployment target
Targets-->Summary-->Deployment target
Select the desired SDK.
How to ensure that we are not using latest SDK API?
lets say you have iOs 5.0 SDK installed, but you are developing app for iOS 4.0, how can we ensure that we accidentally dont use any latest API that would break backward compatibility?
You have to set the right deployment target on Xcode and build against the latest SDK.
Search for iOS Deployement Target setting on Build Settings tab within PROJECTS -> YourName. This will also change that setting on TARGETS -> YourName.
For further reference see Apple doc.
As hotpaw2 wrote in this stackoverflow topic
They won't be able to install and run the app (until they upgrade the
OS on their device to that of the Deployment Target or above). But
they might be able to buy and download the app using iTunes on their
Mac or PC.
Hope it helps.
Trying to set target's base sdk to iphone4 (3.2 on the screenshot) and build the project: