-
1. Re: Can't Debug On iOS Simulator Anymore... Why Did You Break It Adobe?
Jitender thakur Oct 8, 2014 4:26 AM (in response to leejk)Thanks for reporting the issue.
At our end there is no problem when there are multiple iOS SDKs. We used the following commands:
Package App :
adt -package -target ipa-test-interpreter-simulator -storetype <type> -keystore < Certificates > -storepass < password > <.ipa> <.xml> <swf> -platformsdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/S DKs/iPhoneSimulator8.0.sdk/
Install App :
adt -installApp -platform ios -platformsdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/S DKs/iPhoneSimulator8.0.sdk -device ios-simulator -package < ipa >
Launch App :
adt -launchApp -platform ios -platformsdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/S DKs/iPhoneSimulator8.0.sdk -device ios-simulator -appid <APP ID>
Could you please share the adt packaging, install and launch commands?
P.S: In case you are using SDK path as: -platformsdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/S DKs/iPhoneSimulator.sdk,
kindly use the SDK path containing the SDK version eg, If you want to use iOS 8.0 simulator use -platformsdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/S DKs/iPhoneSimulator8.0.sdk and in case you want to use iOS 7.1 simulator use -platformsdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/S DKs/iPhoneSimulator7.1.sdk
-
2. Re: Can't Debug On iOS Simulator Anymore... Why Did You Break It Adobe?
leejk Oct 8, 2014 6:56 AM (in response to Jitender thakur)Hi,
I am using this in IntelliJ IDEA, but to simplify troubleshooting I tried from the command line as you did. I am using the following command, but it does not install the ipa file on any iOS simulator. I have set the following variable: AIR_IOS_SIMULATOR_DEVICE=iPad 2
~/SDKs/flex_4.13_15/bin/adt -installApp -platform ios -platformsdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/S DKs/iPhoneSimulator8.0.sdk -device ios-simulator -package Ipg.ipa
~/SDKs/flex_4.13_15/bin/adt -launchApp -platform ios -platformsdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/S DKs/iPhoneSimulator8.0.sdk -device ios-simulator -appid com.cat.bcp.mobile.Ipg
Also note that while the iPad 2 simulator is running, running this command yields no devices listed, which is weird:
CM000979654:Ipg leejk$ ~/SDKs/flex_4.13_15/bin/adt -devices -platform ios
No connected device found.
CM000979654:Ipg leejk$
After entering the second adt command, it does launch the app, but launches it on the iPhone 5 simulator, which is undesired. So the documented environment variable setting is not being used. Why is this not a command line option instead?
rgds
-
3. Re: Can't Debug On iOS Simulator Anymore... Why Did You Break It Adobe?
Jitender thakur Oct 8, 2014 10:19 PM (in response to leejk)Hi,
I order to launch iPad 2 simulator you have to set variable as AIR_IOS_SIMULATOR_DEVICE=iPad, Could you please try this and get back to us with your findings.
As variable is set incorrectly, iPhone 5 simulator get launched, which is default simulator.
Hope this will resolve your problem.
Regards,
Jitender
-
4. Re: Can't Debug On iOS Simulator Anymore... Why Did You Break It Adobe?
leejk Oct 9, 2014 5:51 AM (in response to Jitender thakur)Ok, that was the problem. I would advise that the docs be updated to show that, as it's not clear that only a category of device can be specified instead of specific devices using that variable.
Which brings up another question: How can specific devices be targeted? If it launches the iPad 2 simulator and I want to debug in the iPad AIR simulator, how can I? Or if it launches iPhone 5 by default and I want iPhone 6?
-
5. Re: Can't Debug On iOS Simulator Anymore... Why Did You Break It Adobe?
Graham Smith Oct 9, 2014 6:14 AM (in response to Jitender thakur)Hi there,
I use flash cc2014 .
AIR_IOS_SIMULATOR_DEVICE=iPad might work with flex,
but it don't work using adt on the command line on my install of AiR 15.0.0.302..
-
6. Re: Can't Debug On iOS Simulator Anymore... Why Did You Break It Adobe?
leejk Oct 9, 2014 6:25 AM (in response to Graham Smith)Graham, be sure that after setting variable in the terminal, you quit Terminal and restart it, then type env to see if the variable is present. I had that problem initially, using the same SDK version.


