Skip navigation
marco1230
Currently Being Moderated

Using ANE in iOS Simulator for debugging

Jan 24, 2013 1:52 PM

Tags: #ios #ane #adt #xcode #simulator #macos #i386 #iphone-arm #iphone-x86

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%20Nat ive%20Extension/AIR%20Native%20Extension%20for%20iOS.xctemplate/genera teANE.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/Test 1/com.adobe.flexide.multiplatform.ios.platform -platformsdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator. platform/Developer/SDKs/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

 
Replies
  • Currently Being Moderated
    Jan 28, 2013 3:50 AM   in reply to marco1230

    Hi,

     

    The above menntioned commands are correct, both for ane packaging and Flash Builder Debugging.

    I tried to package and ane and debug with Flash Builder 4.7 with xcode simulator and it worked fine.

     

    In order to create the Native extension static library, please build your xcode project for iPhone Simulator or iPad Simulator. You can ignore warnings if any.

    This should work for you.

     

    Please let me know if you still face issues.

     

    Thanks,

    Krati

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points