Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


  1. In Xcode, create a new iOS Project (Single View Application). When prompted for options, select Swift in the Language drop-down.
  2. Create a Header File and name it <PROJECT_NAME>-Bridging-Header.h. Make sure the main project's application target folder is selected, then from the menu, select FileNewFile... or drag a Header File from the File Template library to the application target folder. The application target folder is a folder under the root project folder and will be named the same as the project if the name has not been changed.

  3. Unzip the appcelerator-sdk-ios-<VERSION>.zip file and drag the Appcelerator.framework folder into the root project folder. 
  4. Select Copy items into destination… and click Finish.
  5. Select your project in the Project Navigator and click the Build Phases tab.
  6. Expand the Link Binary With Libraries section and add the libsqlite3.tbd and libz.tbd frameworks. Before Xcode 7, the framework extension is dylib rather than tbd.
  7. Click the Build Settings tab, then click the All button in the top-left corner of the tab.
  8. If you are using Xcode 7, you will need to disable bit code since some third-party libraries do not have bit code enabled. Expand the Build Options section and set Enable Bitcode to No.
  9. Expand the Linking section and add -ObjC  to Other Linker Flags. 
  10. Expand the Swift Compiler - Code Generation section (near the bottom) and add the bridging header file (with the relative path from the root folder) to Objective-C Bridging Header, for example, <PROJECT_NAME>/<PROJECT_NAME>-Bridging-Header.h.

  11. Open the bridging header file and add the following import statement: 

    Code Block
    #import <Appcelerator/Appcelerator.h>
  12. Open the application delegate file (AppDelegate.swift) and add the following initialization code to the application() method: 

    Code Block

    The iOS application is now ready to make method calls using the APS SDK APIs.