Flex Project - Run on iOS Simulator - Session could not be started

Answered

IntelliJ 2016.1.1 - Flex Project
Flex 4.15 / AIR 21
Xcode 7.3
Simulator - iOS 9.3

Session could not be started: Error Domain=LaunchServicesError Code=0 "(null)" UserInfo={Error=APIInternalError, ErrorDescription=Failed to make staged container live __NSConcreteUUID 0x786550f0> ....

 

I also have iOS 8.1 for the Simulator, but I do not see how to specify which device/version to launch. The code is compiled against the 9.3 SDK.

5 comments

iOS Simulator SDK is configured in the Flash Run Configuration dialog (Run | Edit Configurations).

Some (but not all!) Flash iOS apps require Apple iOS SDK (not iOS Simulator SDK!) to be packaged as IPA file. This is configured in Project Structure | Modules | [your Flash module] | [your Flash build configuration subnode] | iOS tab | Apple iOS SDK. In most cases this field can be left empty.

To start the app on Simulator IDE also uses ADT tool from the AIR SDK. Command is 

`adt -launchApp -platform ios -platformsdk ... -device ios-simulator -appid ...`

You may try this from Terminal and ask on Adobe forum for help if it fails.

 

0

In the Edit configurations: Run on iOS Simulator: iOS Similator, SDK:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk

In the Project Structure, Modules, (app), iOS tab: Apple iOS SDK:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.3.sdk

Note, I am able to successfully publish this app to the AppStore and run it on my device (via TestFlight). The error I am encountering is specific to trying to launch the app on the Simulator.


/Applications/Intellij\ IDEA.app/Contents/jre/jdk/Contents/Home/jre/bin/java -jar ~/Src/SDK/Flex4.15_AIR21/lib/adt.jar -launchApp -platform ios -platformsdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk -device ios-simulator -appid social.uncommon.flex.lobby.Main


Session could not be started: Error Domain=LaunchServicesError Code=0 "(null)" UserInfo={Error=APIInternalError, ErrorDescription=Failed to make staged container live <MCMAppContainer (33, 1) ID: social.uncommon.flex.lobby.Main UUID: <__NSConcreteUUID 0x7c791160> FFC1DAC9-E606-4422-9FF6-A5022337BC29 URL: file:///Users/adamgering/Library/Developer/CoreSimulator/Devices/805F9497-B5AB-4203-98B5-53DDB5861661/data/Library/Caches/com.apple.containermanagerd/Bundle/Application/749B6F32-86CA-43CB-B3D5-FEB7A05D4152/ isTemp: 1 info: (null)>}

0

The default template Flex mobile project (as generated without modifications), iOS tab blank (no provisioning profile, no keystore, no sdk), 9.3 simulator SDK on Run Configuration, Flex 4.15 / AIR 21.

First run it succeeded and launched on the iOS Simulator.

2nd run and all successful attempt fail with the same error as above. No changes have been made.

EDIT: it works if the Simulator is closed. It fails if the Simulator is open.

Reproduced, same behavior on my App.

0

I understand that these are AIR Developer Toolkit (ADT) bugs, and likely specifically the Apache Flex version of the ADT.

 

However, you probably want to notify IntelliJ users of these issues. Namely:

Flex 4.x / AIR 20 does not work with the Simulator (Null Pointer Exception)

Flex 4.x / AIR 21 does work with the Simulator, but only if the Simulator is not running when Run is executed.

 

I've reproduced these with your default (template) project, without modification. I presume you or anyone else would also be able to reproduce these bugs.

 

0

Thank you for the info!

ADT tool is a part of Adobe AIR SDK, there's no such tool in Apache Flex SDK. AIR SDK 22 beta is already available, may be some related issues are already fixed there: http://labs.adobe.com/downloads/air.html

0

Please sign in to leave a comment.