Adobe
Products

Top destinations

  • Adobe Creative Cloud
  • Creative Suite
  • Adobe Marketing Cloud
  • Acrobat
  • Photoshop
  • SiteCatalyst
  • Students
  • Elements family

Adobe Creative Cloud

  • What is Adobe Creative Cloud?
  • Design
  • Web
  • Photography
  • Video
  • Students
  • Teams
  • Enterprise
  • Educational institutions

Design and photography

  • Photoshop
  • Illustrator
  • InDesign
  • Adobe Muse
  • Lightroom

Video

  • Adobe Premiere
  • After Effects

Web development and HTML5

  • Edge Tools & Services [opens in a new window]
  • Dreamweaver
  • Gaming [opens in a new window]

Adobe Marketing Cloud

  • What is Adobe Marketing Cloud?
  • Digital analytics
  • Social marketing
  • Web experience management
  • Testing and targeting
  • Media optimization

Analytics

  • SiteCatalyst
  • Adobe Discover
  • Insight

Social

  • Adobe Social

Experience Manager

  • CQ
  • Scene7

Target

  • Test&Target
  • Recommendations
  • Search&Promote

Media Optimizer

  • AdLens
  • AudienceManager
  • AudienceResearch

Document services

  • Acrobat
  • EchoSign [opens in a new window]
  • FormsCentral [opens in a new window]
  • SendNow [opens in a new window]
  • Acrobat.com [opens in a new window]

Publishing

  • Digital Publishing Suite

  • See all products
Business solutions

By business need

  • Digital analytics
  • Digital publishing
  • Document management
  • Media optimization
  • Social marketing
  • Testing and targeting
  • Video editing and serving
  • Web development [opens in a new window]
  • Web experience management
  • See all business needs

By industry

  • Broadcast
  • Education
  • Financial services
  • Government
  • Publishing
  • Retail
  • See all industries
Support & Learning

I need help

  • Products
  • Adobe Creative Cloud
  • Adobe Marketing Cloud
  • Forums [opens in a new window]

I want to learn

  • Training and tutorials
  • Certification [opens in a new window]
  • Adobe Developer Connection
  • Adobe Design Center
  • Adobe TV [opens in a new window]
  • Adobe Marketing Center
  • Adobe Labs [opens in a new window]
Download
  • Product trials
  • Adobe Flash Player
  • Adobe Reader
  • Adobe AIR
  • See all downloads
Company
  • Careers at Adobe
  • Investor Relations
  • Newsroom
  • Privacy
  • Corporate Social Responsibility
  • Customer Showcase
  • Contact us
  • More company info
Buy
  • For personal and professional use
  • For students, educators, and staff
  • For small and medium businesses
  • Volume Licensing
  • Special offers
  • Adobe Marketing Cloud sales [opens in a new window]
Search
 
Info Sign in
Why sign in? Sign in to manage your account and access trial downloads, product extensions, community areas, and more.
Welcome,
My Adobe
My orders
My information
My preferences
My products and services
Sign out
My cart
Privacy My Adobe
Adobe
Products Sections Buy   Search  
Solutions Company
Help Learning
Sign in Sign out Privacy My Adobe
Preorder Estimated Availability Date. Your credit card will not be charged until the product is shipped. Estimated availability date is subject to change. Preorder Estimated Availability Date. Your credit card will not be charged until the product is ready to download. Estimated availability date is subject to change.
Qty:
Purchase requires verification of academic eligibility
Subtotal
Promotions
Estimated shipping
Tax
Calculated at checkout
Total
Review and Checkout
Adobe Developer Connection / Adobe AIR Developer Center /

Using the iOS Simulator to test and debug AIR applications

by Neha Gupta

Neha Gupta

Content

  • Packaging an application for the iOS Simulator
  • Installing and launching an application
  • Testing native extensions in the iOS Simulator
  • Where to go from here

Created

30 July 2012

Page tools

Share on Facebook
Share on Twitter
Share on LinkedIn
Bookmark
Print
Adobe AIRdebuggingiOSmobiletesting
Was this helpful?
Yes   No

By clicking Submit, you accept the Adobe Terms of Use.

 
Thanks for your feedback.

Requirements

Prerequisite knowledge

Previous experience building AIR apps for iOS will help you make the most of this article.


Additional required other products

Xcode

  • Download

User level

Intermediate

Required products

  • Adobe AIR

Adobe AIR 3.3 includes support for the native iOS Simulator, providing a fast way to test and debug iOS apps. iOS Simulator is part of Apple's Xcode IDE for creating apps for Mac, iPhone, and iPad. To learn more about the iOS Simulator, see Using iOS Simulator. Prior to this feature, the only way to test AIR apps on iOS was with an actual device and a developer certificate from Apple. Now you can test and debug your AIR apps without obtaining a developer certificate (which can be a time consuming process) or creating a provisioning profile. A p12 certificate, which you can create and sign yourself is sufficient. Note that although you no longer need a developer certificate or provisioning file to test and debug, you do need still need them to deploy to iTunes. You may refer to this link to create a p12 certificate. A self signed certificate can also be created using Flash Builder, as described here. You may use the same self-signed certificate, as used for Desktop applications.

Packaging an application for the iOS Simulator

Support for the iOS Simulator is currently not available in Flash Builder, but you can access it from the command line using ADT.

The iOS Simulator is based on the x86 architecture and two new targets have been added in ADT to support it:

  • ipa-test-interpreter-simulator
  • ipa-debug-interpreter-simulator

To package an app for the iOS Simulator, execute ADT at the command line with –package and use –target to specify one of these targets. For example, for the test interpreter target you can execute the following:

adt -package -target ipa-test-interpreter-simulator -storetype pkcs12 -keystore Certificates.p12 -storepass password Sample_ipa_name sample_ipa-app.xml sample_ipa.swf -platformsdk <path to iOS Simulator SDK >

An example path to the iOS Simulator SDK is /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk

For the debug interpreter target, you can execute the following:

adt -package -target ipa-debug-interpreter-simulator -connect -storetype pkcs12 -keystore Certificate.p12 -storepass password Sample_ipa_name sample_ipa-app.xml sample_ipa.swf -platformsdk <path to iOS Simulator SDK>

Note that the command for the debug target does not specify an IP address. This is because the simulator will always be launched on the local machine, so no IP address is needed. You can find more information on test and debug targets here.

Also note that -platformsdk and the path to the external iOS Simulator SDK are always required when packaging an application for the iOS Simulator. You can find more information on using ADT here.

Installing and launching an application

Once you have packaged your application, you can install it in the iOS Simulator with ADT and –installApp ; for example:

adt -installApp -platform ios -platformsdk <path to iOS Simulator SDK> -device ios-simulator -package sample_ipa_name.ipa

After installing the app, you can launch and run it on the iOS Simulator using ADT and –launchApp ; for example:

adt -launchApp -platform ios -platformsdk <path to iOS Simulator SDK> -device ios-simulator -appid Sample_ipa_name

The appid value is specified in the application descriptor file (app.xml) within the <id> tag. Flash Builder uses the app name as the appid by default.

The application can be uninstalled from the iOS Simulator directly through the UI. Alternatively, you can uninstall it via the command line using –uninstallApp :

adt -uninstallApp -platform ios -platformsdk <path to iOS Simulator SDK> -device ios-simulator -appid Sample_ipa_name

Note: If you uninstall an application using ADT, its icon will remain in the iOS Simulator until you restart the simulator.

Testing native extensions in the iOS Simulator

When you want to test a native extension in the iOS Simulator, use the iPhone-x86 platform name in the extension.xml file and specify library.a (the static library) in th e nativeLibrary element. Be sure to use the static library (.a file) that is compiled for the simulator and not the static library that is compiled for the device.

Here is a typical extension.xml with these settings:

<extension xmlns=”http://ns.adobe.com/air/extension/3.1“> <id>com.cnative.extensions</id> <versionNumber>1</versionNumber> <platforms> <platform name=”iPhone-x86″> <applicationDeployment> <nativeLibrary>library.a</nativeLibrary> <initializer>TestNativeExtensionsInitializer</initializer> <finalizer>TestNativeExtensionsFinalizer</finalizer> </applicationDeployment> </platform> </platforms> </extension>

To package a native extension for iOS Simulator the ADT command would look like the following:

adt -package -target ane Sample_ane_name extension.xml -swc <path to SWC file> -platform iPhone-x86 library.a library.swf -platformoptions <path to platform descriptor file>

Here, -platformoptions is only required if additional linker options need to be specified.

Where to go from here

For more on AIR and mobile devices, see Developing AIR applications for mobile devices. To learn more about native extensions, see Native Extensions for AIR.

More Like This

  • Developing cross-platform Adobe AIR applications
  • Building a native extension for iOS and Android – Part 2: Developing the ActionScript library
  • Creating your first Adobe AIR application on Android
  • Signing Adobe AIR applications
  • Using push notifications in AIR iOS apps
  • Using the Push Notifications native extension for iOS
  • Building a native extension for iOS and Android – Part 5: Building the ANE file
  • Tips for building AIR applications that can be easily updated
  • Building a native extension for iOS and Android – Part 3: Building the iOS library
  • Developing Adobe AIR native extensions for Android

Products

  • Adobe Creative Cloud
  • Creative Suite
  • Adobe Marketing Cloud
  • Acrobat
  • Photoshop
  • Digital Publishing Suite
  • Elements family
  • SiteCatalyst
  • For education

Download

  • Product trials
  • Adobe Reader
  • Adobe Flash Player
  • Adobe AIR

Support & Learning

  • Product help
  • Forums

Buy

  • For personal and professional use
  • For students, educators, and staff
  • For small and medium businesses
  • Volume Licensing
  • Special offers

Company

  • News room
  • Partner programs
  • Corporate social responsibility
  • Career opportunities
  • Investor Relations
  • Events
  • Legal
  • Security
  • Contact Adobe
Choose your region United States (Change)
Choose your region Close

North America

Europe, Middle East and Africa

Asia Pacific

  • Canada - English
  • Canada - Français
  • Latinoamérica
  • México
  • United States

South America

  • Brasil
  • Africa - English
  • Österreich - Deutsch
  • Belgium - English
  • Belgique - Français
  • België - Nederlands
  • България
  • Hrvatska
  • Česká republika
  • Danmark
  • Eastern Europe - English
  • Eesti
  • Suomi
  • France
  • Deutschland
  • Magyarország
  • Ireland
  • Israel - English
  • ישראל - עברית
  • Italia
  • Latvija
  • Lietuva
  • Luxembourg - Deutsch
  • Luxembourg - English
  • Luxembourg - Français
  • الشرق الأوسط وشمال أفريقيا - اللغة العربية
  • Middle East and North Africa - English
  • Moyen-Orient et Afrique du Nord - Français
  • Nederland
  • Norge
  • Polska
  • Portugal
  • România
  • Россия
  • Srbija
  • Slovensko
  • Slovenija
  • España
  • Sverige
  • Schweiz - Deutsch
  • Suisse - Français
  • Svizzera - Italiano
  • Türkiye
  • Україна
  • United Kingdom
  • Australia
  • 中国
  • 中國香港特別行政區
  • Hong Kong S.A.R. of China
  • India - English
  • 日本
  • 한국
  • New Zealand
  • 台灣

Southeast Asia

  • Includes Indonesia, Malaysia, Philippines, Singapore, Thailand, and Vietnam - English

Copyright © 2013 Adobe Systems Incorporated. All rights reserved.

Terms of Use | Privacy | Cookies

Ad Choices

Reviewed by TRUSTe: site privacy statement