DEV Community

Brenton House
Brenton House

Posted on • Originally published at brenton.house on

Are you ready for Xcode 11 and iOS 13 Development?

Successfully Develop using Xcode 11 side-by-side with Xcode 10

Are you ready for iOS 13 and Xcode 11 development?

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

  1. To do this, you will need to download Xcode 11 from Apple’s Developer site: https://developer.apple.com/download/more/
  2. 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.
  3. Download and install Command line tools for Xcode 11 (also found on the Apple Developer site: https://developer.apple.com/download/more/
  4. 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
Enter fullscreen mode Exit fullscreen mode

or this command, if you are using the open-source Titanium CLI tool:

ti sdk install 8.2.0.GA
Enter fullscreen mode Exit fullscreen mode

This way, you can now install it using this syntax in your tiapp.xml file:

<sdk-version>8.2.0.GA</sdk-version>
Enter fullscreen mode Exit fullscreen mode

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
Enter fullscreen mode Exit fullscreen mode

Be sure you have selected the 8.2.x SDK in tiapp.xml

<sdk-version>8.2.0.GA</sdk-version>
Enter fullscreen mode Exit fullscreen mode

Now, you can run this from the root of your Titanium project:

ti build --platform ios
Enter fullscreen mode Exit fullscreen mode

or

appc run --platform ios
Enter fullscreen mode Exit fullscreen mode

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
Enter fullscreen mode Exit fullscreen mode

Be sure you have selected the 8.2.x SDK in tiapp.xml

<sdk-version>8.2.0.GA</sdk-version>
Enter fullscreen mode Exit fullscreen mode

Now, you can run this from the root of your Titanium project:

ti build --platform ios
Enter fullscreen mode Exit fullscreen mode

or

appc run --platform ios
Enter fullscreen mode Exit fullscreen mode

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
Enter fullscreen mode Exit fullscreen mode

Be sure you have selected the desired pre 8.2.x SDK in tiapp.xml

<sdk-version>8.1.1.GA</sdk-version>
Enter fullscreen mode Exit fullscreen mode

Now, you can run this from the root of your Titanium project:

ti build --platform ios
Enter fullscreen mode Exit fullscreen mode

or

appc run --platform ios
Enter fullscreen mode Exit fullscreen mode

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
Enter fullscreen mode Exit fullscreen mode

Be sure you have selected the desired pre 8.2.x SDK in tiapp.xml

<sdk-version>8.1.1.GA</sdk-version>
Enter fullscreen mode Exit fullscreen mode

Now, you can run this from the root of your Titanium project:

ti build --platform ios
Enter fullscreen mode Exit fullscreen mode

or

appc run --platform ios
Enter fullscreen mode Exit fullscreen mode

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!


Top comments (0)