Using ANE in iOS Simulator for debugging

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

Hello,
thanksk so far. I can now create an ANE, hopefully it is correct...
Now, while trying to use it in my mobile application, calling the Constructor of my SWC interface > call initNativeExtension() I get an:
Type Error #1009 cannot access a property or method of a null object reference
It seems that my code cannot load the ANE because I cannot instatiate the extension object.
Can you help me ?
THX
marco    

Similar Messages

  • Is there a iOS Simulator for CS6 FlashPro Win8

    I know that cs6 can be hooked up to the simulator on the Mac in Xcode, but I could really use a simulator for CS6 Flash Pro on the Win8 platform.
    Of course, I need to be able to generate Screen Shots for the iPhone5 and the iPad.
    Does anyone know of such a handy tool. Dream weaver has the devices thing, and even that would be useful in Flash.
    I know I can debug in the build environment, and it brings up an iPhone simulation, but its pretty generic, and isn't configurable for the different devices.
    thanks

    You will possibly want to look into the iOS software development kit (part of XCode) but that is really for developing your own apps, not playing other developers apps on a Mac.
    The short answer to your question "No."

  • Ios simulator for director ios apps

    did someone have success with the xcode ios simulator running a director published .ipa?
    ive tried so far in xcode 5:
    uncompressed the .ipa file which gives me a folder called Payload with the .app inside.
    i copied the app into
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SD Ks/iPhoneSimulator5.0.sdk/Applications
    or
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SD Ks/iPhoneSimulator6.0.sdk/Applications
    starting the ios simulator shows the app in the phone but launching the app fails.
    the same happens using ios-sim for launching the app.
    https://github.com/appcelerator/ios-sim
    it fails as well.
    any ideas or success with older xcode versions?

    You will possibly want to look into the iOS software development kit (part of XCode) but that is really for developing your own apps, not playing other developers apps on a Mac.
    The short answer to your question "No."

  • How to install itunes and docusign in ios simulator for monodevelop

    Hi All,
    Can anyone tell me on how to install iTunes and other applications like Docusign in ios simulator that is run on Mac(monodevelop).
    Thanks

    Hi there rj 138,
    You may find the troubleshooting steps in the article below helpful.
    iTunes for Windows: "Registry settings" warning when opening iTunes
    http://support.apple.com/kb/ts3299
    -Griff W. 

  • Unable to boot the ios simulator for xcode 6

    I am unable to launch my app on simulator using xcode 6  and iPhone 5s simulator. First I am getting an error message from Simulator "Unable to boot the iOS simulator", and then after xcode is showing me following error,

    Me too . Please help. I try to delete all simulator, reset content and setting, remove xcode and reinstall. But not resolve.

  • Xpath query using ANE with AIR3.9 for iOS app

    we are building an app for iOS using AIR 3.9 where we have to load and parse the xml document so that we can read the images path and download the stuff on iOS device. To fix this issue we have found a solution using XCode via ANE where by using XPath Query classes such as "PerformXPathQuery", "PerformXMLXPathQuery", "xmlReadMemory" etc. The code is running well when build on simulator itself on mac machine. But when we are packaging the ANE with AIR 3.9, it gives us the error which says that:-
    Error occurred while packaging the application:
    Undefined symbols for architecture armv7:
      "_xmlReadMemory", referenced from:
          _PerformXMLXPathQuery in libnet.example.download.a(ExampleLib.o)
    ld: symbol(s) not found for architecture armv7
    Compilation failed while executing : ld64
    I have tried linking binary with libraries like "libxml2.dylib", "libxml2.2.dylib" and libz.dylib + added the libXML header files to the header search path in the build properties, but got no help.
    our AIR 3.9 platform xml looks like:-
    <platform xmlns="http://ns.adobe.com/air/extension/3.9">
        <sdkVersion>4.0.0</sdkVersion>
        <linkerOptions>
            <option>-ios_version_min 4.2</option>
            <option>-framework UIKit</option>
            <option>-framework Foundation</option>
            <option>-framework CoreText</option>
        </linkerOptions>
    </platform>
    can anyone suggest where we are going wrong!
    thanks in advance

    Found the solution, i was missing the framework related to xPath library in platform.xml
    follow the instuctions from the below link:-
    http://forums.adobe.com/thread/1037904
    thanks adobe team

  • How to use the functionality of Simulation for the Transaction MIRO

    Hi Group,
    I have a requirement to call SAP from MS Excel and check for the SImulation option as under:
    The Excel will pass the values of Invoice Number, Posting date, PO number, PO Item number, Company code and etc., through the call of BAPI   -   'BAPI_INCOMINGINVOICE_CREATE'  in order to create Invoice in the SAP system.
    But the above BAPI is creating the Invoices in SAP system. Rather, I need to just check(thru SIMULATION) the records and come back to MS Excel with the MIRO numbers that will be created and the errror messages that will be returned back.
    In summary, I have to add two Buttons as:
       POST : this has to create MIRO(invoice Numbers) in the SAP System(populating the Success/Error Messages by calling
                   the above BAPI   -  This functionality is working fine now
       SIMULATE: this has to do  same functionality of "POST" option but should not create MIROs in the SAP system
                          Currently I am not able to achieve this as the above BAPI is creating MIROs in SAP.
    Kindly provide your inputs on how to go about incorporating the above SIMULATION functionality, by giving some simulation BAPIs that can be used for my functionality.
    Thanks for your help in advance.
    Regards,
    Vishnu.

    Hi Group,
    In continuation to my previous posting, I would like to give more inputs as under:
    when I was using the BAPI - BAPI_INCOMINGINVOICE_CREATE (unless I commit the transaction), MIRO would not be created in the system.
    Now, when I run the BAPI again with a different set of data, the Invoice Number is getting incremented by one.... this I dont need, if the Invoice is not committed and if I run the next time, I need to get the same Invoice Number....
    How can I achieve this task?
    Kindly let me know your inputs on this.
    Regards,
    Vishnu.

  • How to install iOS simulator 4.3 separately on lion....

      i am using dashcode,i need ios simulator for that....
      but when i  go to preferences -> downloads in xcode for installing ios simulator 4.3 , it shows one pop up that my apple id dont have access for installing....
      Plz suggest how to resolve this error ...
    Thanks in Advance....

    If I install it and it is too slow, can I uninstall?
    Not according to Apple. But truthfully it can be done and without jailbreaking. You do need to prepare for the regression before you do the update to iOS 5 though.
    You may also be able to update your current 4.2 to 4.3. You can download 4.3 (be sure to get the correct one for your iPad) from the direct links here;
    After you have the file on your computer open the iTunes app on your computer, press & hold opt/alt and click the Check for Update button. Browse to the 4.3.5 file on your computer and select it. iTunes should take care of it from that point forward.

  • What physical iOS devices for testing?

    Considering the current offering of iPhones and iPads today (sept 30th 2012), what devices should I purchase to do a "reasonable" testing for iOS apps? I mean, should I purchase all iPhones and iPads and test them all, like some Android developers do having dozens of Android devices for testing?
    If possible, I'd like to use the iOS simulator for testing, and then test the app on no more than 1 or 2 real physical devices, because I tend to believe iOS doesn't have the same fragmentation of Android, but I ask because I want to know if my plan is reasonable, and how many physical devices would you test at least.

    Ok, I didn't know that (because I'm not used to test all machines/OSX combinations for OSX applications, my experience with OSX says a few combinations are enough usually).
    It wouldn't seem reasonable for me to buy 3 iPhones and 3 iPads in this moment. I think I'll start with just one device. If I get income from my apps, I'll buy a second one. But all devices I buy should be payed from the apps income, otherwise I wouldn't consider it reasonable.

  • Re: Using already running Tomcat server for development.

    Hi Nick,
    Yes, you can use existing Tomcat Server for debugging app developed with
    NitroX. And you can refer to Help > Help Contents > NitroX User Guide >
    NitroX Tour > Running and debugging the application.
    We do support Tomcat 4.0.x to Tomcat 5.0.x. If you need any further
    assistance please get back to us.
    Thanks
    M7 Support
    "Nick Mulder" <[email protected]> wrote in message
    news:41d9f379$[email protected]..
    Sorry if this has been covered anywhere else.Just wondering if you can use an existing tomcat server for debugging
    webapps being developed in NitroX. I have a non dedicated server a
    development server. Up until purchasing NitroX I have been using ant build
    files to compile and re-deploy my apps into the running tomcat server.
    Just wondering if I can do something similar thru NitroX and Eclipse.
    Forgive me if I am missing something obvious, but I am new to eclipse.
    Thanks,
    Nick Mulder

    Take a look at these links: http://plato.acadiau.ca/courses/comp/dsilver/2513/EclipseAndTomcatTutorial/
    http://www.keyboardsamurais.de/2004/01/15/tomcat_tutorial_helloworld_for_complete_fools_-_english/
    http://www-128.ibm.com/developerworks/opensource/library/os-ectom/?ca=dgr-lnxw16EclipsTomcat
    I've found going through tutorials is a proven, quick way of getting up to speed with new tools and configurations.
    HTH,
    James

  • Using already running Tomcat server for development.

    Sorry if this has been covered anywhere else.
    Just wondering if you can use an existing tomcat server for debugging
    webapps being developed in NitroX. I have a non dedicated server a
    development server. Up until purchasing NitroX I have been using ant build
    files to compile and re-deploy my apps into the running tomcat server. Just
    wondering if I can do something similar thru NitroX and Eclipse. Forgive me
    if I am missing something obvious, but I am new to eclipse.
    Thanks,
    Nick Mulder

    Take a look at these links: http://plato.acadiau.ca/courses/comp/dsilver/2513/EclipseAndTomcatTutorial/
    http://www.keyboardsamurais.de/2004/01/15/tomcat_tutorial_helloworld_for_complete_fools_-_english/
    http://www-128.ibm.com/developerworks/opensource/library/os-ectom/?ca=dgr-lnxw16EclipsTomcat
    I've found going through tutorials is a proven, quick way of getting up to speed with new tools and configurations.
    HTH,
    James

  • IOS Simulator on Xcode 4.6 / 5

    The iOS simulator for iphone or ipad is very big and shows a scroll bar to check app's view, can this view be changed to normal regular size one where it shows the entire iphone/ipad properly and no scroll bars?

    Try the Simulator's 'Window/Scale' menu.

  • Debug/Run for iOS simulator and Retina iPad

    Even in the latest beta 2 releates, the dropdown for "Default Device" includes "iPad", "iPhone", "iPhone (Retina)" but does not include "iPad Retina".  Seems like adding the "iPad Retina" woud be a matter of passing the correct flag to the iOS Simulator and should be quick and easy?  When can we expect this?

    Hi ,
    Its a valid request. Please log an Enhancement request using the below link.
    http://bugs.adobe.com/jira/login.jsp
    Meanwhile you can try this workaround:
    1.Open iOS simulator.
    2.Choose Hardware->device from iOS simualator menu to the device on which you want to test your application.
    3.Launch your application on iOS simulator from the Flash Builder.(Selecting the device on Flash Builder has no effect if the simulator is already running).
    Thanks,
    Sanjay

  • Can't Debug On iOS Simulator Anymore... Why Did You Break It Adobe?

    I see lots of posts on this subject, and I am experiencing the same issue. I fail to see why this change in the SDK was put forth, as it has made development a real pain for iOS. In the AIR SDK 4.0 this worked fine. According to the new method, we are supposed to use an environment variable to control which simulator we want to debug in, but this does not work either when multiple iOS SDKs are installed. If this can be controlled by an environment variable, then why can't it be controlled by a command line option to adt? That would be a much more robust solution versus having to change your OS's environment every time you need to switch simulators.
    Any response from development on why it is this way now?

    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

  • Flash CC 2014 14.1.0.96 Crashing on attempt to debug in iOS Simulator

    Just like the title says, Flash CC 2014 14.1.0.96 is completely crashing every time I try and debug my project in the iOS simulator via the Debug > Debug Movie > On iOS Simulator command. I have XCode version 6.1 installed. The simulator never opens - Flash crashes while the "Publishing..." progress bar is showing, after about 5 seconds.
    I've tried the following iOS Simulator SDK paths in the Air 14.0 for iOS Publish settings:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SD Ks/iPhoneSimulator.sdk/
    and
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SD Ks/iPhoneSimulator8.1.sdk/
    But both cause Flash CC 2014 to crash completely.
    I should note that Publishing directly to my iPad works properly. Flash only crashes when trying to debug in the simulator.
    The crash generates a rather lengthy error report. Here's the top part of it:
    Process:               Adobe Flash CC 2014 [18187]
    Path:                  /Applications/Adobe Flash CC 2014/Adobe Flash CC 2014.app/Contents/MacOS/Adobe Flash CC 2014
    Identifier:            com.adobe.Adobe Flash CC 2014.application
    Version:               14.1.0 (14.1.0.96)
    Code Type:             X86-64 (Native)
    Parent Process:        ??? [1]
    Responsible:           Adobe Flash CC 2014 [18187]
    User ID:               501
    Date/Time:             2014-10-30 19:27:03.689 -0400
    OS Version:            Mac OS X 10.10 (14A389)
    Report Version:        11
    Anonymous UUID:        D572A920-72C5-3A81-FC6C-5190EEE5CC54
    Sleep/Wake UUID:       3AAEBF78-CC4E-4B94-8C18-DB6F9F2C1915
    Time Awake Since Boot: 620000 seconds
    Time Since Wake:       330000 seconds
    Crashed Thread:        37
    Exception Type:        EXC_CRASH (SIGABRT)
    Exception Codes:       0x0000000000000000, 0x0000000000000000
    Application Specific Information:
    Performing @selector(dispatchMenuSelection:) from sender DVAMacMenuItem 0x6080000eaa80
    [18187] stack overflow
    If you'd like the full version let me know.
    Please help! Being able to test in the simulator will improve my life exponentially.
    Thanks

    Hi All,
    Thanks for your patience. All the issues related to iOS simulator, XCode 6.x have been fixed in latest release of FlashPro CC 2014 (Build No. 14.2.0.20) which was released yesterday.
    Requesting you to please update and try and let us know if you still face any issues.
    You can update your Flash CC 2014 build by just going to Help>Updates or through Creative Cloud App.
    You can learn more about the update at Flash Professional Help | New features summary
    Rgds,
    Mukesh

Maybe you are looking for

  • All online logs needed archiving

    "All online logs needed archiving" I have the database in "archivelog" mode alert file ..All online logs needed archiving When adding a new schema should the archivelog be NO? What am I to do here?

  • File to File Scenario: Error Occured

    The following error were displayed in the communication channel monitoring for the Sender FTP Adapter 1.An error occurred while connecting to the 11.10.10.41FTP server . The FTP server returned the following error message:  'com.sap.aii.adapter.file.

  • I have PS Elements 10 with a serial

    I have PS elements from 2008 and bought a new computer.  Downloaded  Elements 10  and can't get my serial # to work.  any ideas!

  • Split one Post OFfice in two parts

    Hi there! I have problems with my Poa, because I'm having problems with I/O. Despite of all, my POA is about 250 GB and I think that it's pretty big. So I have a lot of "batch users" that are receiving a lot of emails with low priority, and I am thin

  • Process Chains - Production Support

    Hi Gurus, I have doubt regarding process chains in production support system. Is the consultant who is working on production support on process chains monitoring, how many process chains are assigned to him( maximum). Is all the process chains are re