Brenton House
Posted on November 12, 2019
Successfully Develop using Xcode 11 side-by-side with Xcode 10
With the release of iOS 13, a lot of developers are going to want to install Xcode 11 side-by-side with Xcode 10. This allows you to continue to test your apps on iOS 12.x simulators as well as testing them on the new iOS 13.x simulators.
Installing Xcode 11
- To do this, you will need to download Xcode 11 from Apple’s Developer site: https://developer.apple.com/download/more/
- Rename the existing version 10 Xcode.app (in your Applications directory) to Xcode10.app. Now move the newly-downloaded version 11 Xcode.app to your Applications directory.
- Download and install Command line tools for Xcode 11 (also found on the Apple Developer site: https://developer.apple.com/download/more/
- Open each of the two different versions of Xcode to make sure that neither requires any other setup. You can then close them after successful open.
Download and install Titanium SDK 8.2.0.GA
Open terminal and execute this command, if you are using the appcelerator CLI tool:
appc ti sdk install 8.2.0.GA
or this command, if you are using the open-source Titanium CLI tool:
ti sdk install 8.2.0.GA
This way, you can now install it using this syntax in your tiapp.xml file:
<sdk-version>8.2.0.GA</sdk-version>
Building your app with different versions of SDK and Xcode
The following sections describe different targeting scenarios that you may want to run as a developer
Target iOS 13.x simulator from SDK 8.2.x
If you do not already have Xcode 11 selected as active, you will need to run this command:
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
Be sure you have selected the 8.2.x SDK in tiapp.xml
<sdk-version>8.2.0.GA</sdk-version>
Now, you can run this from the root of your Titanium project:
ti build --platform ios
or
appc run --platform ios
Target iOS 12.x simulator from SDK 8.2.x
If you do not already have Xcode 10 selected as active, you will need to run this command:
sudo xcode-select --switch /Applications/Xcode10.app/Contents/Developer
Be sure you have selected the 8.2.x SDK in tiapp.xml
<sdk-version>8.2.0.GA</sdk-version>
Now, you can run this from the root of your Titanium project:
ti build --platform ios
or
appc run --platform ios
Target iOS 13 simulator from pre 8.2.x SDK
If you do not already have Xcode 11 selected as active, you will need to run this command:
sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer
Be sure you have selected the desired pre 8.2.x SDK in tiapp.xml
<sdk-version>8.1.1.GA</sdk-version>
Now, you can run this from the root of your Titanium project:
ti build --platform ios
or
appc run --platform ios
Target iOS 12 simulator from SDK 7.5.x
If you do not already have Xcode 10 selected as active, you will need to run this command:
sudo xcode-select --switch /Applications/Xcode10.app/Contents/Developer
Be sure you have selected the desired pre 8.2.x SDK in tiapp.xml
<sdk-version>8.1.1.GA</sdk-version>
Now, you can run this from the root of your Titanium project:
ti build --platform ios
or
appc run --platform ios
Enjoy adding new iOS 13 features to your Titanium native mobile app!
Axway Titanium supports all of the new iOS 13 features like dark mode and Apple signin with the release of SDK 8.2.0.GA!
Posted on November 12, 2019
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.