3 Replies Latest reply: Feb 2, 2013 8:29 AM by marco1230 RSS

    Using ANE in iOS Simulator for debugging

    marco1230 Community Member

      Hello everyone,

       

      I’m developing on a MAC mini with Flash Builder 4.7 and AIR 3.4. I am working on an ANE and I like to debug it with the XCode simulator. To do that, I am using this template:

       

      https://github.com/divijkumar/xcode-template-ane/blob/master/AIR%20Native%20Extension/AIR% 20Native%20Extension%20for%20iOS.xctemplate/generateANE.sh)

      I tried to change the <extensions.xml> to refer to "iPhone-x86"  and creating the ANE by using ADT command like

       

      ---------------------

      "$AIR_SDK_PATH"/bin/adt -package -target ane "$TARGET_NAME" extension.xml -swc "$EXTENSION_SWC_FILE_NAME" -platform default library.swf -platform iPhone-x86 -platformoptions platformoptions.xml "$NATIVE_EXTENSION_STATIC_LIB_NAME" library.swf

      ----------------------

       

      Then in Flash Builder (with Debugger) I am trying to debug my application with the XCode Simulator with this command:

       

      adt.jar -package -target ipa-debug-interpreter-simulator -connect 192.168.1.54 -hideAneLibSymbols no -storetype pkcs12 -keystore ios_development.p12 Test1.ipa Test1-app.xml DebugHostInfo.xml Test1.css Test1.swf -extdir /Users/admin/Documents/Adobe Flash Builder 4.7/.metadata/.plugins/com.adobe.flexbuilder.project.ui/ANEFiles/Test1/com.adobe.flexide. multiplatform.ios.platform -platformsdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/S DKs/iPhoneSimulator6.0.sdk

       

      I always get Error:

      ----------------------

      Error occurred while packaging the application:

      ld: warning: could not create compact unwind for __Unwind_Resume: non-standard register 0 being saved in prolog

      ld: warning: could not create compact unwind for __Unwind_ForcedUnwind: non-standard register 0 being saved in prolog

      ld: warning: could not create compact unwind for __Unwind_RaiseException: non-standard register 0 being saved in prolog

      ld: warning: could not create compact unwind for __Unwind_Resume_or_Rethrow: non-standard register 0 being saved in prolog

      ----------------------

       

       

      My questions are:

       

      1. Is my ANE creation process above correct? Or do I have to use "iPhone-ARM" in the ADT Command for parameter "-platform"?

      2. Do I need to add i386 architecture to my build settings in XCode under "Valid Architectures" in order to debug it on my MAC mini with Xcode simulator?

      3. Is the Flash Builder debugging ADT command correct?

      4. And what about this linker problem described here: forums.adobe.com/message/4319610#4319610

       

       

      thx

      marco