Quantcast
Channel: Adobe Community : Popular Discussions - Using Flash Builder
Viewing all articles
Browse latest Browse all 70427

Using ANE in iOS Simulator for debugging

$
0
0

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


Viewing all articles
Browse latest Browse all 70427

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>