ios packaging and simulator

Alessandro's Avatar

Alessandro

23 Oct, 2014 03:23 PM

I'm trying to use ios packaging and simulator with this configuration

airMobile {
  platform = 'ios'
  outputExtension = 'ipa'
  simulatorTargetDevice = 'ios-simulator'
  simulatorTarget = 'ipa-test-interpreter-simulator'
  simulatorPlatformSdk = '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk'
}

the build is successfull but nothing is showed in simulator (see also the attachment)
Where is the problem?
Thanks

  1. Support Staff 1 Posted by Yennick Trevels on 23 Oct, 2014 05:32 PM

    Yennick Trevels's Avatar

    I think the simulatorTargetDevice property should be set to 'ios_simulator' (with an underscore)

  2. 2 Posted by Alessandro on 23 Oct, 2014 09:14 PM

    Alessandro's Avatar

    I tried with underscore but nothing is changed.

  3. 3 Posted by Alessandro on 24 Oct, 2014 10:41 AM

    Alessandro's Avatar

    launchApp

    This is my output from --debug

    Executing '/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java' with arguments:
    '-jar' '/Users/ale/sites/as3/AIRSDK_Compiler/lib/adt.jar' '-launchApp' '-platform' 'ios' '-platformsdk' '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk' '-device' 'ios_simulator' '-appid' 'Pianola'

    I tried with 'ios-simulator' instead 'ios_simulator' because in adobe documentation is written with "-"

    http://help.adobe.com/en_US/air/build/WS901d38e593cd1bac1e63e3d128f...


    installApp

    '/Users/ale/sites/as3/AIRSDK_Compiler/lib/adt.jar' '-installApp' '-platform' 'ios' '-platformsdk' '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk' '-device' 'ios_simulator' '-package' '/Users/ale/sites/as3/Pianola/build/Pianola-ipa-test-interpreter-simulator.apk'

  4. 4 Posted by Alessandro on 24 Oct, 2014 10:44 AM

    Alessandro's Avatar

    I'm using air sdk15 with ios simulator 8

  5. 5 Posted by Alessandro on 24 Oct, 2014 10:49 AM

    Alessandro's Avatar

    (is there a way to edit previous post?)

    in this link
    http://help.adobe.com/en_US/air/build/WS901d38e593cd1bac1e63e3d128f...

    ios_simulator is written with underscore

    in this link
    http://help.adobe.com/en_US/air/build/WS901d38e593cd1bac1e63e3d128f...

    ios_simulator is written with "-"

    Anyway i dont think that this is the problem because i tried with both.

  6. 6 Posted by Alessandro on 24 Oct, 2014 11:56 AM

    Alessandro's Avatar

    Sorry i noticed now that java tell me a number code error. In the first screenshoot attached was 14 (maybe for underscore) now is 12

  7. 7 Posted by Alessandro on 24 Oct, 2014 01:10 PM

    Alessandro's Avatar

    I tried direct with adt command line and i get the same NSInvalidArgumentException

    /Users/ale/sites/as3/AIRSDK_Compiler/bin/adt
    -installApp
    -platform ios
    -platformsdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk
    -device ios-simulator -package build/Pianola.ipa

    /Users/ale/sites/as3/AIRSDK_Compiler/bin/adt
    -launchApp
    -platform ios
    -platformsdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk
    -device ios-simulator
    -appid Pianola

    and i obtained

    [__NSCFString localizedDescription]: unrecognized selector sent to instance 0x100301700
    2014-10-24 15:04:20.072 isb[3600:507] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString localizedDescription]: unrecognized selector sent to instance 0x100301700'
    *** First throw call stack:
    (
    0 CoreFoundation 0x00007fff8a47025c __exceptionPreprocess + 172
    1 libobjc.A.dylib 0x00007fff8c03ee75 objc_exception_throw + 43
    2 CoreFoundation 0x00007fff8a47312d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
    3 CoreFoundation 0x00007fff8a3ce272 ___forwarding___ + 1010
    4 CoreFoundation 0x00007fff8a3cddf8 _CF_forwarding_prep_0 + 120
    5 isb 0x00000001000010a5 -[iPhoneSimulator LoadSimulatorFramework:] + 245
    6 isb 0x0000000100002fe4 -[iPhoneSimulator runWithArgc:argv:] + 99
    7 isb 0x000000010000332b main + 101
    8 isb 0x0000000100000f60 start + 52
    )
    libc++abi.dylib: terminating with uncaught exception of type NSException

  8. 8 Posted by Alessandro on 24 Oct, 2014 01:38 PM

    Alessandro's Avatar
  9. Yennick Trevels closed this discussion on 01 Nov, 2014 12:14 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac