Flex mobile project : Unable to use Iphone simulator

Answered

Hello,

I'm trying to test a flex mobile project on the iPhone simulator but I get an error (see attached screen capture)

Xcode version is Version 7.2 (7C68)

Path to the IOS Simulator SDK is set to : /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk

Thank you for your help.

 

 

11 comments
Comment actions Permalink

Looks like Flex SDK bug. Did you try with a more recent version, like 4.6?

0
Comment actions Permalink

Hi Serge,

Thank you for your quick reply.

Minimum AIR version supported by the simulator is 3.3 so flex SDK 4.6 (AIR 3.1) cannot be used.

I made a test with Flex SDK 4.14.1 : the simulator launch but with the following error

Any idea ?

 

0
Comment actions Permalink

What was the AIR SDK version when you tried to start iOS Simulator using Flex SDK 1.15 and 1.14.1?

There are 2 phases of starting the app on the simulator: building *.ipa package and then launching it using the simulator. Your first screenshot says that packaging failed, but you 2nd one says that launching failed. So I guess, packaging succeeded, right?

IntelliJ IDEA uses ADT tool from the AIR SDK to create package and to start the simulator. You can try to so the same from Terminal without IDE at all. See ADT tool documentation. If it fails from Terminal as well then I'm afraid I do not know if anything can be done at IDE side with it. Asking in the Adobe AIR developers forum may help.

 

 

0
Comment actions Permalink

Hi Alexander,

The Flex sdk used is not 1.15 but 4.15.0 (latest release at this date)

The error related to the first screenshot occurs when I try to compile with Flex SDK 4.15.0

Following Serge response, I tried to compile with the slighty older SDK 4.14.1 and then I get the error captured on the second screenshot.

I left a message on the Apache Flex user mailing list but I have not yet been answered.

 

 

 

 

0
Comment actions Permalink

Sorry, of course I meant 4.15 and 4.14.1. When you install Apache Flex SDK it also downloads and installs Adobe AIR SDK, and installer allows you to choose what version of AIR SDK to install. ADT tool is included in the AIR SDK, so only AIR SDK version is important for packaging and launching on the simulator. You can find AIR SDK version in the air-sdk-description.xml file inside Flex SDK installation folder.

Not sure if AIR gurus are reading Apache mailing list. Adobe AIR devs forum may be more useful. But I'm afraid if you post IntelliJ screenshot there they may say 'contact IDE vendor' without reading. That's why I suggested to try to package and launch the app using ADT tool from the Terminal, without IDE at all.

Update: there are 3 steps after SWF compilation to start the app on Simulator: package, install, launch.

Your 2nd screenshot says that launching failed. So I guess packaging and installation succeeded. Did you see 'Packaging...' progress before it (right after you click to start Flash run configuration with simulator target)? I guess you did. So *.ipa package for simulator should have corresponding modification time (check .../out/production/Studius/Studius.ipa). And I guess it is already installed on the simulator, but you may try installing once again. Finally it's easy to try to start it on simulator from command line. If you get errors that you and I can not explain - that's a good question for Adobe's forum.

0
Comment actions Permalink

Thank you Alexander,

It's 4.15.0 with AIR 20.

I tried to install a test ipa (empty project) on the command line :

development/apache/flex/sdks/4.15.0/bin/adt -installApp -platform ios -platformsdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk -device ios-simulator -package test.ipa

The command seems to be executed but nothing happens...

This issue has recently been reported on the AIR forum : https://forums.adobe.com/thread/2052368?q=ios-simulator 

 

 

0
Comment actions Permalink

> The command seems to be executed but nothing happens...

That's fine for '-installApp' command. Nothing visible is expected to happen. After that try to 'ADT -launchApp' it. Simulator should start.

P.S. Of course installation and launch are actual only after successful packaging. If you always get the error like posted on Adobe forum, it means that packaging failed. Are you trying to install and launch IPA successfully packaged with previous version of AIR SDK?

0
Comment actions Permalink

I tried adt -launchApp command after executing -installApp but I get the message "Application is not installed" (yes ipa was packaged with 4.14.1/AIR 16)

0
Comment actions Permalink

I'm afraid all I can suggest is to try with AIR SDK 17, 18 and 19. The best chances I guess are with 19.

0
Comment actions Permalink

Alexander, Serge,

Thank you for your time.

It's indeed an AIR issue that should be solved in the next AIR beta (https://forums.adobe.com/message/8420413#8420413)

By the way, intellij is a fantastic IDE !

Vincent.

0
Comment actions Permalink

Hi,

Just overlayed flex 4.15.0 with the latest AIR beta SDK (http://labs.adobe.com/downloads/air.html ) and the iPhone simulator works fine now.

 Vincent.

0

Please sign in to leave a comment.