Skip to end of metadata
Go to start of metadata
Contents

Icon

Due to Apple's terms and conditions, the iOS SDK may only be installed on Apple products, hence only instructions for installing to Apple's OS X operating system are provided here.

Overview

This guide describes where to obtain and how to install the Xcode suite of developer tools including iOS SDKs.

Compatibility and Download

Titanium requires Xcode to be installed in order for you to develop iOS applications.

There are two ways to obtain Xcode, the application that installs and manages iOS SDKs:

  1. Launch the App Store application, found in the Applications folder, and search for and install "xcode" (includes only currently-supported iOS SDKs).
  2. Enroll with the Apple Developer website and browse the iOS Dev Center page to manually download the installer application (includes all previously-released iOS SDKs, new and old).

Both of the above options are currently free of charge, although may require credit card details to be entered. If you wish to test your applications on a device, however, you will need to become a member of the iOS Developer Program, by way of an annual subscription charge of $99 at the time of writing.

Xcode

To develop for iOS, Titanium requires Apple's Xcode suite of tools.

Each Titanium SDK supports a specific range of Xcode versions, shown in the table below.

Titanium SDK Version

Min Xcode Version

Max Xcode Version

Notes

7.0.08.3.x9.1.x 
6.3.08.3.x9.0.x 
6.2.x8.3.x9.0.xFull support for iOS 11
6.1.x8.3.x8.3.x 
6.0.x8.0.08.3.x 
5.5.07.3.x8.1.x 
5.4.07.3.x7.3.x 
5.0.0 - 5.3.16.0.x7.3.x 
4.0.0 - 4.1.x6.0.x6.4.x 
3.4.0 - 3.5.x6.0.x6.0.x 
3.2.2 - 3.3.05.0.x5.1.x 
3.2.0 - 3.2.15.0.x5.0.x 
3.1.35.05.0.xThis release only supports Xcode 5.0 and not any of the 5.0.x versions.
3.1.0 - 3.1.24.34.6As of Release 3.1.0, the Titanium SDK no longer supports iOS development for ARMv6 devices, which includes the iPhone 2G/3G and iPod Touch 1G/2G.

2.1.3 - 3.0.x

4.2

4.6

To build the Titanium SDK 3.0.x with Xcode 4.2, use the legacy Titanium command-line tool. See Legacy Command-Line Interface for more information.

2.1.0 - 2.1.2

4.2

4.4

 

2.0.x

4.2

4.3

 

1.8.x

4.2

4.2

 

1.7.1+

3.2.6

4.2

 


Deploying for iOS 8.0 requires Xcode 6.0, and Mac OS X 10.9.4 and later. Note: we don't support this version anymore.

Deploying for iOS 9.x requires Xcode 7.x, and Mac OS X 10.11 and later. 

Deploying for iOS 10.x requires Xcode 8.x, and Mac OS X 10.11.5 and later.  

Deploying for iOS 11.x requires Xcode 9.x, and Mac OS X 10.11.5 and later.  

iOS SDK / Target iOS Platform

Each Titanium SDK supports a specific range of iOS base SDKs and deployment targets. To build an application for a specific iOS target version, you must have the appropriate iOS SDK installed. 

Titanium SDK version

Minimum SDK version

Maximum SDK version

Minimum target iOS version

Maximum target iOS version

6.3.0 - latest8.0.x11.x8.011.x
6.2.0 - 6.2.28.0.x11.x8.011.x
6.0.0 - 6.1.28.0.x10.x8.010.x
5.0.0 - 5.5.18.0.x9.3.x7.1.x9.3.x
4.0.0 - 4.1.x8.0.x8.4.x7.1.x8.4.x
3.4.0 - 3.5.x8.0.x8.0.x7.1.x8.0.x
3.2.2 - 3.3.07.0.x7.1.x6.1.x7.1.x
3.1.3 - 3.2.17.0.x7.0.x6.1.x7.0.x
3.1.1 - 3.1.25.0.x6.1.x5.0.x6.1.x
3.1.04.3.x6.1.x4.3.x6.1.x

2.1.3 - 3.0.x

4.0.x

6.1.x

4.0.x6.1.x

2.1.0 - 2.1.2

4.0.x

5.1.x

4.0.x5.1.x

2.0.x

4.0.x

5.1.x

4.0.x5.1.x

1.8.x

4.0.x

5.0.x

4.0.x5.0.x

1.7.1+

3.1.2

5.0.x

3.1.25.0.x

Installation (iOS-only)

Note that the typical filesystem location of this software can be found in the OS X Software Locations section of these guides.

Install Xcode

To install the current version of Xcode, use the Mac App Store:

  1. Launch the App Store application from the Applications folder
  2. Search for "Xcode"
  3. Click the Free button, then Install App button

The App Store starts the download and installation process.

To install previous versions of Xcode, download and run the installer application from iOS Dev Center: Downloads for Apple Developers.

  1. Go to https://developer.apple.com/downloads/ (Requires an Apple Developer account)
  2. Search for "Xcode"
  3. Locate the Xcode version you want to install and click the link to start downloading it.
  4. Once the download completes, launch the installer application and follow the directions.

Launch Xcode

To confirm that Xcode has been installed correctly, launch it from Applications.

Update Xcode using Xcode Installer

When new versions of the SDK are released, launch the App Store and click the Updates icon.  If Xcode appears, click the Update button.

Install the Command Line Tools and Previous Simulators

The Xcode command-line tools are required for native add-on module development and recommended to be installed for mobile application development.  You can either install the command-line tools from Xcode or by running the xcode-select command from a terminal.

To install the command-line tools or older simulator from Xcode:

  1. Launch Xcode.
  2. Select Xcode Preferences.
  3. Select the Download icon and click the Install button next to the Command Line Tools item.
  4. If desired, you can install older simulators.

To install the command-line tools from a terminal, run the following command:

Select the Active Xcode Version

For systems with multiple Xcode versions installed, the current version can be selected by running sudo xcode-select at the command-line.

For example:

If you are using Studio, you need to restart Studio for your changes to take effect.

 

Configure Studio or the CLI

Both Studio and the CLI use the xcode-select command to obtain the location of the Xcode tool to use when building your iOS applications.  Neither tool requires any additional configuration.

For Studio 3.1.0 and later, you can select a default iOS simulator type to launch after building your application.  Open the Preferences dialog by selecting Appcelerator Studio > Preference from the menu bar, then  navigate to  Studio > Platforms > iOS and select a simulator type from the  Default Display  drop-down menu.

Note for Mavericks

If you are using Mac OS X 10.9 (Mavericks) and packaging an iOS application to the iTune Stores, after the Xcode Organizer is launched, a dialog from OS X may open stating, 'UI element scripting is not enabled. Check "Enable access for assitive devices"'.

This message is misleading as this was the name of the setting in previous versions of Mac OS X, which is already enabled by default on the older versions.

On Mavericks, to fix this issue:

  1. Open System Preferences from the Apple Menu.
  2. Click Security & Privacy.
  3. Click the Privacy tab.
  4. If the dialog is locked (bottom-left corner), unlock it.
  5. Click Accessibility from the left list.
  6. Enable either Terminal (if you are using the Titanium CLI), TitaniumStudio or AppceleratorStudio.
  7. Close the System Preferences.


  • No labels