Problem creating native extension package

In an effort to learn how to create a native extension on my own, I've looked to the examples and help documentation from Adobe. I have actually created the required files for the extension (the native code, extension descriptor, the swc library and library.swf). However, when I run the command to build the .ane file I get this error:
/Users/dalston/TeamAGC/sdk/4.6.0/bin/adt -package -target ane ../release/DeviceInfoExtension.ane extension.xml -swc DeviceInfoExtension.swc -platform iPhone-ARM library.swf libDeviceInfo.a
output file is not writable
I also tried a variation of that command that results in the same error (which comes straight from the Adobe help docs):
/Users/dalston/TeamAGC/sdk/4.6.0/bin/adt -package -target ane ../release/DeviceInfoExtension.ane extension.xml -swc DeviceInfoExtension.swc -platform iPhone-ARM -C platform/ios . -platform default -C platform/default library.swf
output file is not writable
I'm not sure what I'm doing wrong here. Has anyone had this problem before? Thanks in advance for your help!

Hello Colin,
The folder I was working from /Users/dalston/TeamAGC/sdk/4.6.0, which is where the AIR sdk resides. The actual directory with the native extension files are in /Users/dalston/Documents/Adobe Flash Builder 4.6/DeviceInfoExtension/bin/DeviceInfoExtension. When I run the ls command I see all the folders under the main user (dalston, which is me). I believe I have read/write access to everything since I am the adminsitrator on this machine. I am on a Mac by the way.

Similar Messages

  • ExtensionContext error while creating Native Extension in Flex 3.6 SDK

    I'm creating native extension with Flex 3.6 . Coded native side then created Flex Library Project and then create .ane file. Finally imported .ane file to myFlex Project.
    Here is the problem I had. While I'm debugging app, "1046: Type was not found or was not a compile-time constant: ExtensionContext" error occurs. Attached the Library project .as class .
    Thanks in Advance
    package com.extension.samples
       import flash.events.EventDispatcher;
       import flash.events.IEventDispatcher;
       import flash.external.ExtensionContext;
       public class NetworkConnectionANE extends EventDispatcher
            public var _extContext : ExtensionContext;
            public function NetworkConnectionANE(target:IEventDispatcher=null)
                _extContext = ExtensionContext.createExtensionContext("com.extension.samples.NetworkConnectionANE", null);
                 super(target);
            public function Connect(path:String):int
                 return _extContext.call("nativeFunc", path);
            public function dispose():void
                _extContext.dispose();
    Edit: I tried to use .swc file that created from library project in another Flex Desktop app, but the same error
        Also tried with     _extContext = ExtensionContext.createExtensionContext("com.extension.samples.NetworkConnectionANE","");
    Edit: The problem about Flex SDK, there is no problem in SDK 4.6. Now the question is, How to use Extension in lib project in Flex 3.6 SDK ?

    I'm sure, I use Flex 3.6.0 SDK version. When I want to create a library project in 3.6.0, already I couldn't see  ExtensionContext class in flash.external package. If I create in v4.6, I'm having problem when I start to debug my v3.6 desktop application. Now I want to learn
    Does Flex v3.6.0 support NativeExtension ?
       if Yes ,
    which class is equal to ExtensionContext in v3.6.0
    or How can I import ExtensionContext class to v3.6.0
    Thanks

  • Creating the native extension package

    This question was posted in response to the following article: http://help.adobe.com/en_US/air/extensions/WSf268776665d7970d-2482335412ffea65006-8000.htm l

    Hi,
    I am trying to create a native extension for MAC.
    i am getting the following error in xcode.
    i included flashruntime.h and imported the .h file also.
    other FRE functions are working fine..i am getting error only after adding FREAcquireByteArray.
    Undefined symbols for architecture x86_64:
      "_FREAcquireByteArray", referenced from:
          _saveFile in save.o
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

  • IOS default native extension packaging null pointer exception

    I have an ANE that currently has a specific implementation for Android and a default implementation. Packaging up the .apk for android works fine on my android devices and packaging up a windows destop version (I created a separate desktop air application to do this) that uses the default ANE implementation works fine.
    The problem is when trying to packaging the ipa for iOS that uses the ANE. I get the following error when I try a "Export Release Build" of my mobile app for iOS. It should be using the default ANE implementation.
    Error occurred while packaging the application:
    Warning: Using default implementation for native extension '<my ane extension id here>'
    unexpected failure: null
    java.lang.NullPointerException
        at com.adobe.png.PNGUtils.updatePNGMetadata(PNGUtils.java:60)
        at com.adobe.air.ipa.IPAOutputStream.addFile(IPAOutputStream.java:557)
        at com.adobe.air.ADTOutputStream.addFileFromStream(ADTOutputStream.java:299)
        at com.adobe.air.ADTOutputStream.addFileFromStream(ADTOutputStream.java:292)
    What is missing? I've successfully packaged IPAs before but they didn't use any ANEs. This app will eventually have it's own iOS ANE implementation but it should just use the default if there is no iOS implementation available.
    Randy

    While using ipa-test-interpreter or ipa-debug-interpreter (and also removing the -platformsdk argument during IPA packaging) fixed ipa-test and ipa-debug builds, it did not fix ipa-ad-hoc or ipa-app-store builds. Our entire build automation system relies on ant based builds, so at the moment using Flex 4.6 and AIR 3.4 is basically out of the question because of the null pointer exception error that eckhoff_randy pointed out above.
    Without AIR 3.4 we do not have iOS 6 support (meaning we don't have iPhone 5 support either).
    This is a MAJOR problem. I'm not sure that 'waiting until the next release' is an acceptable answer at this point. If possible can you give me as much information as you have on this problem?
    Here's what's my output looks like:
    [exec] [Fatal Error] :1:1: Content is not allowed in prolog.
    [exec] java.io.IOException: PLIST generation failed due to SAX error:org.xml.sax.SAXParseException: Content is not allowed in prolog.
    [exec]
    at com.adobe.air.Plist.newFromString(Plist.java:351)
    [exec]
    at com.adobe.air.Plist.newFromFile(Plist.java:325)
    [exec]
    at com.adobe.air.ipa.IPAOutputStream.setSDKVersion(IPAOutputStream.java:1067)
    [exec]
    at com.adobe.air.ipa.IPAOutputStream.setPlatformSDKLocation(IPAOutputStream.java:969)
    [exec]
    at com.adobe.air.ipa.IPAPackager.setDeviceSDKDirectory(IPAPackager.java:187)
    [exec]
    at com.adobe.air.ADT.parseFileAndPathArguments(ADT.java:1423)
    [exec]
    at com.adobe.air.ADT.parseDescriptorAndFileset(ADT.java:1474)
    [exec]
    at com.adobe.air.ADT.parseInput(ADT.java:929)
    [exec]
    at com.adobe.air.ADT.parsePackage(ADT.java:672)
    [exec]
    at com.adobe.air.ADT.parseArgsAndGo(ADT.java:570)
    [exec]
    at com.adobe.air.ADT.run(ADT.java:419)
    [exec]
    at com.adobe.air.ADT.main(ADT.java:469)
    [exec] unexpected failure: null
    [exec] java.lang.NullPointerException
    [exec]
    at com.adobe.air.ipa.IPAOutputStream.addExtensionAbc(IPAOutputStream.java:1031)
    [exec]
    at com.adobe.air.ipa.IPAPackager.addExtensions(IPAPackager.java:351)
    [exec]
    at com.adobe.air.ApplicationPackager.createPackage(ApplicationPackager.java:68)
    [exec]
    at com.adobe.air.ipa.IPAPackager.createPackage(IPAPackager.java:245)
    [exec]
    at com.adobe.air.ADT.parseArgsAndGo(ADT.java:571)
    [exec]
    at com.adobe.air.ADT.run(ADT.java:419)
    [exec]
    at com.adobe.air.ADT.main(ADT.java:469)

  • Android native extension packaging error

    Hi,
    I have been working on a native extension. It packages and runs fine on ios, but when I try to launch my app on an android device I get the following error,
    !MESSAGE Error occurred while packaging the application:
    null
    !STACK 0
    java.lang.NullPointerException
              at java.util.zip.ZipFile.getInputStream(ZipFile.java:194)
              at com.adobe.air.apk.APKPackager.processExtensions(APKPackager.java:228)
              at com.adobe.air.ApplicationPackager.createPackage(ApplicationPackager.java:65)
              at com.adobe.flexbuilder.multisdk.apollo.export.AIRAPKPackager.createUsingPackager(AIRAPKPac kager.java:245)
              at com.adobe.flexbuilder.multisdk.apollo.export.AIRAPKPackager.create(AIRAPKPackager.java:57 5)
              at com.adobe.flexbuilder.multisdk.apollo.export.AIRAPKPackager.create(AIRAPKPackager.java:13 8)
              at com.adobe.flexide.multiplatform.android.launching.ADBLaunchHandler.doPackage(ADBLaunchHan dler.java:423)
              at com.adobe.flexide.multiplatform.android.launching.ADBLaunchHandler.launch(ADBLaunchHandle r.java:350)
              at com.adobe.flexide.launching.multiplatform.MultiPlatformLaunchDelegate.launch(MultiPlatfor mLaunchDelegate.java:184)
              at com.adobe.flexide.launching.AbstractFlexLaunchDelegate.launch(AbstractFlexLaunchDelegate. java:244)
              at com.adobe.flexide.launching.AbstractFlexLaunchDelegate.launch(AbstractFlexLaunchDelegate. java:134)
              at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:854)
              at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:703)
              at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:928)
              at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1132)
              at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
    I am using Flash Builder 4.7, latest android SDK and Flex 4.12 with air 13 beta.
    Any ideas?

    Hi,
    Can you please share the contents for packaging ANE in the same folder structure with me so that I can give it a try at my end as well and look into this problem? My email id is [email protected]
    -Nimisha

  • Problems deploying native extensions on Android

    I'm trying to test a native extension on Android, but I keep getting the following error when trying to build and push to the device:
    "An implentation for native extension 'extension name' required by the application was not found for the target platform."
    I thought I had just messed up when creating my extension somehow so I tried using others and it doesn't matter which extension I try, I always get the same error. Has anyone else ran into this issue? If so, how did you solve it?
    Thanks.

    If anyone else runs into this issue using FlashDevelop, follow the steps here: https://plus.google.com/u/0/109524935899218597554/posts/7rhFEX7S372
    That solved it for me. Woohoo!

  • Problems using Native Extensions (Gyroscope) for iOS.

    I have downloaded the Gyroscope Native Extension for Air and I'm basically trying to install it so I can use the extensions to develop an iOS AIR app that uses my iPhone's Gyroscope.
    The Gyroscope Folder has been un-zipped and is placed in a folder alongside the AIR app that I'm developing. I've set the Actionscript settings to point to the gyroscope.ane file and also to the gyroscope.swc file.I don't know if the latter is necessary as I'm all new to this.
    My Actionscript reads:-
    import com.adobe.nativeExtensions.Gyroscope;
    import com.adobe.nativeExtensions.GyroscopeEvent;
    import com.adobe.nativeExtensions.GyroscopeIntervalValue
    var gyro:Gyroscope;
    if(Gyroscope.isSupported)
        gyro = new Gyroscope();
        gyro.setRequestedUpdateInterval(1000);
        gyro.addEventListener(GyroscopeEvent.UPDATE,onChange);
    function onChange(e:GyroscopeEvent):void
        trace("From gyro: " + e.x + " " + e.y + " " + " " + e.z);
    Which I've basically taken from the webpage https://www.adobe.com/devnet/air/native-extensions-for-air/extensions/gyroscope.html#artic lecontentAdobe_numberedheader
    And I've added the 3 imports at the top because I believe these should allow these functions / methods (or whatever they are called) to work ?
    Unfortunately I'm getting the following errors:-
    GyroscopeEvent.as, Line 1
    5001: The name of package 'com.adobe.nativeExtensions' does not reflect the location of this file. Please change the package definition's name inside this file, or move the file. /Users/myname/Desktop/programFolder/GyroscopeEvent.as
    Gyroscope.as, Line 1
    5001: The name of package 'com.adobe.nativeExtensions' does not reflect the location of this file. Please change the package definition's name inside this file, or move the file. /Users/myname/Desktop/programFolder/Gyroscope.as
    I don't know where to move the files or how I can get AIR to see this .as files Should I be moving the "Com" folder somewhere better ?
    I'm a relative newbie to AIR so I appologise for my ignorance. All I want is a way to get access to the x y and z values from the Gyroscope.
    Many Thanks
    Gary

    Remove the gyroscope folder. The only file you need is Binaries/Gyroscope.ane.
    If you are using Flash CS6 link to the ane file not the swc file in the publish settings.
    Also remove the line: import com.adobe.nativeExtensions.GyroscopeIntervalValue.
    Sample code that you can use is in the file Eg/src/Eg.mxml.

  • Is XIB not supported in static library (for creating Native Extension)?

    Hello,
    These day I'm trying to build a static library in XCode to build a Native Extension. The original project from which I'm creating a static library is runs well on device. But when I creates a static library project along with one XIB file within, and port it to the Adobe AIR, the expected XIB view never opens up.
    Somewhere some gentleman mentioned that static library can not include XIB, graphics file etc. Is that true (http://stackoverflow.com/questions/2797214/trouble-using-xib-files-in-libraries)? Can't I bundle an ANE with XIB support?
    Thanks.
    Santanu

    Also want to know this Current project may require loading xib over Adobe Air. I suggest to start from here http://stackoverflow.com/questions/7814928/how-to-load-a-xib-file-in-a-uiview and this http://forums.adobe.com/message/4621408
    Let me know if this works and would be gr8 if you can share your solution as opensource

  • Create Native Extensions around pre-existing dll

    Is it possible to create a native extension around a pre-existing DLL without writing any native code?  Or do I have to write a slim wrapper around my dll in order to interface with AS3?

    anybody?

  • Problems adding native extensions from linked resources in Flash Builder 4.7

    While adding native extensions (.ane files) from linked source folder in a Actionscript Mobile Project on Flash Builder 4.7, a java.lang.NullPointerException is thrown. Below is the stacktrace. Any help would be appreciated.
    Also, what is the link/site to file Flash Builder 4.7 bugs?
    java.lang.NullPointerException
              at com.adobe.flexbuilder.project.ui.utils.ANE.AppXMLFileANEExtensionHandler.addToAppXMLModel (AppXMLFileANEExtensionHandler.java:78)
              at com.adobe.flexbuilder.project.ui.utils.ANE.AppXMLFileANEExtensionHandler.addToAppXmlFile( AppXMLFileANEExtensionHandler.java:65)
              at com.adobe.flexbuilder.project.ui.utils.ANE.AppXMLFileANEExtensionHandler.addToAppXmlFile( AppXMLFileANEExtensionHandler.java:48)
              at com.adobe.flexbuilder.project.ui.utils.ANE.ANEController.applyWorkingCopy(ANEController.j ava:791)
              at com.adobe.flexbuilder.project.ui.utils.ANE.ANEController.applyWorkingCopy(ANEController.j ava:814)
              at com.adobe.flexbuilder.project.ui.utils.ANE.ANEpathControl.contributeToLibraryPath(ANEpath Control.java:723)
              at com.adobe.flexbuilder.project.ui.utils.AirBuildPathsPropertiesPane.contributeToLibraryPat h(AirBuildPathsPropertiesPane.java:85)
              at com.adobe.flexbuilder.project.ui.utils.AbstractBuildPathsPropertiesPane.getLibraryPath(Ab stractBuildPathsPropertiesPane.java:1344)
              at com.adobe.flexbuilder.project.ui.properties.BuildPathsPropertyPage.applyProjectSettings(B uildPathsPropertyPage.java:520)
              at com.adobe.flexbuilder.project.ui.properties.AbstractFlexProjectPropertyPage.performOk(Abs tractFlexProjectPropertyPage.java:117)
              at com.adobe.flexbuilder.project.ui.properties.BuildPathsPropertyPage.performOk(BuildPathsPr opertyPage.java:617)
              at org.eclipse.jface.preference.PreferenceDialog$13.run(PreferenceDialog.java:964)
              at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
              at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
              at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
              at org.eclipse.jface.preference.PreferenceDialog.okPressed(PreferenceDialog.java:944)
              at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.okPressed(FilteredPreferenceDial og.java:447)
              at org.eclipse.jface.preference.PreferenceDialog.buttonPressed(PreferenceDialog.java:233)
              at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
              at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:240)
              at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
              at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4128)
              at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1457)
              at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1480)
              at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1465)
              at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1270)
              at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3974)
              at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3613)
              at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
              at org.eclipse.jface.window.Window.open(Window.java:801)
              at org.eclipse.ui.dialogs.PropertyDialogAction.run(PropertyDialogAction.java:158)
              at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
              at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionI tem.java:584)
              at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
              at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java :411)
              at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
              at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4128)
              at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1457)
              at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1480)
              at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1465)
              at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1270)
              at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3974)
              at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3613)
              at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
              at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
              at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
              at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
              at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
              at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
              at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
              at com.adobe.flexbuilder.standalone.FlashBuilderApplication.start(FlashBuilderApplication.ja va:79)
              at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
              at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:110)
              at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:79)
              at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
              at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
              at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
              at org.eclipse.equinox.launcher.Main.run(Main.java:1410)

    A year later, but I'm facing the same bug.
    If your ever found a solution I'd be glad to hear.
    I filed a bug with more details and my own workaround: 
      3697022

  • Problems creating an SSIS package: adding a script task causes data at root level is invalid error

    I am trying to create my first SSIS package using SQL 2012 Server Data Tools which will invoke a script task.  I added the script task, put in the code, and when I try to test out the package, I get a "data at the root level is invalid" error
    message.  I tried creating a new project from scratch, did a build and run w/in the IDE (with no code behind), worked ok.  Added the script task (with no code behind), and I get the same error.
    Can someone please point me in the right direction? 

    Are you sure it is not XML?
    How would I repro the issue?
    Please share all the steps, but I think the code has an issue.
    Arthur My Blog

  • Including resources in your native extension package

    This question was posted in response to the following article: http://help.adobe.com/en_US/air/extensions/WSf268776665d7970d-2e74ffb4130044f3619-7ff8.htm l

    Hey,
    It's fairly simple, once you find out how to search the resource tree. We wrote some code to do it which I've just put up here: http://labs.distriqt.com/post/1245
    Once you grab the class there you should be able to access the application resources wherever your code is executed:
    int iconId = Resources.getResourceIdByName( context.getPackageName(), "drawable", "icon" );
    Cheers,
    Michael

  • Adobe: What frameworks are compatible with Native Extensions on iOS?

    Man it's really hard to diagnose what could possibly be going wrong compiling ANEs for iOS. I dev apps in Xcode that work perfect, zero leaks. I use any part of the majority of the frameworks I've tried (none visual) and they simply don't work outside a very rare few. Vibration, gyroscope, alert modals, etc.
    Is there a list of compatibility between ANEs and classes on platforms that AIR supports? Whether it be Windows, iOS, Android, MacOSX, etc?
    Is there some way to "know" that a framework should be supported? For example, all I remember reading is to steer clear of visual classes. Oddly the UIAlertView modal works on iOS (that's visual to me but *shrug*).
    My current need is to use NSURLConnection and NSURLRequest. Both are in Foundation.h. Neither are visual. They're simply classes that make a connection to a host while sending and receiving responses. Yet any time I attempt to instantiate a NSURLRequest it's insta-crash. I comment it out and the ANE works fine. So far I find almost everything I do with ANEs to fail.
    Clearly the framework classes I'm using aren't supported or I'm doing it miserably wrong.
    A chart indicating support would be REALLY nice for each platform.
    On another note, has anyone utilized NSURL* on iOS successfully in an ANE?

    Thanks for the response. A few questions on your insights.. I don't use the command line adt tool to do anything besides package the ANE. Otherwise I'm not sure why my AIR project would need to know where the iOS SDK base directory is. The static library is already produced.
    Here's the simple code I'm using (just the NSURL* related stuff):
    http://pastebin.com/SFsq578R
    I'm producing the Static Lib using XCode 4.3.x. I only need NSURL* functionality which is found in Foundation.h which is included and required for compile in build phases. If I comment out anything to do with NSURL* and simply return a string (FREObject of a const char*) I get that string back to flash and can print it to prove I have the context/initializer/finalizers set up and the function named properly. So the bridge between AIR and ANE work just fine. It's only when I use a NSURL* function that I crash.
    Since my troubles I read this extensively long PDF on creating native extensions:
    http://help.adobe.com/en_US/air/extensions/air_extensions.pdf
    To be brief, it warned that a FREObject only exists until the return of the function you call. What I'm wondering is if it's even possible to use NSURL* functions because they require a delegate and will be running async. So even if I make a request and a connection using that request, after I return from the FRE function the connection is probably being cleaned up.
    That aside, I did make the connection and request a synthesized global hoping to get around this. Also to be brief I found an excellent post about debugging an IPA using XCode. Otherwise you're pretty much in a black hole debugging. Here's the post:
    http://blogs.adobe.com/rajorshi/2011/11/18/debugging-native-extensions-for-air-ios/
    The recipe works although it didn't right out of the box.
    XCode is telling me it's a EXC_BAD_ACCESS which typically means the object does not exist that I'm doing something to. My call stack looks like this (loosely, and the name of my static lib is libWebUtil):
    0 objc_msgSend
    1 CFStringGetLength
    2 _CFStringIsLegalURLString
    3 -[NSURL(NSURL) initWithString:relativeToURL:]
    4 -[NSURL(NSURL) URLWithString:relativeToURL:]
    5 -[WebUtil performRequest] // this is my method
    6 performRequest
    7 avmplus::ExtensionContextObject::_call(avmplus::String*,avmplus::ArrayObject*)
    .. etc
    From that stack I see it firing off the NSURLRequest and NSURL itself is first taking my string and testing it (CFStringIsLegalURLString) and then it runs CFStringGetLength. I assume it has completed verifying the string and goes to send a message (0 objc_msgSend) and I get a EXC_BAD_ACCESS on that.
    I see 9 threads running. This happens on Thread 1 (com.apple.main-thread). The stack traces all look like ASM code to me. Not very useful but at least I can tell the official error.
    Mind you that code linked above works perfectly if I make a new empty app, import it and run it. I print out the response data and it's fine.
    Right around the incident on the stack there's a avmplus::EventDispatcherObject::NativeDispatchEvent(MMgc::GCAPI::GCRef<avmplus::EventObje ct>, avmplus::WeakRefList<SObject> const*) + 1076;  .. if that helps at all. It's like the event it dispatches (perhaps from NSURL) to signal that the NSURL I'm making on the fly is correct but there's no object to receive it. That might happen if my method finishes and the object is destroyed before NSURL can even fire off the message.
    So I'm very interested in learning about object lifecycle in an ANE.

  • Adobe Air for iOS and Android: FlasCC or Native Extension?

    Hi all,
    Who know - what provide better perfomance. FlasCC or Native Extension? For example for Math calculations, bitmapdata modification and etc.

    Well nothing prevent you from mixing flascc with native extension.
    Also, I think that you can also use domain memory in AS3 with the Bytearray class (not sure about that).
    Flascc vs normal as3 is mostly a question of language (portability) Do you want to write as3 or c++?
    Native extension give you speed and native platform access(platform specific feature).
    So, you should think about it this way:
    AS3, run in flash and air. Is sandboxed. Can use domain memory, but it's a bit harder to leverage than flascc.
    Flascc, run in flash and air. Is sandboxed, Can use domain memory. Give you the potential of leveraging the hundreds of opensources lib already out there.
    Native extension, run ONLY in air. Is not sandboxed. Native memory management. Also let you leverage the c++ lib. 
    The best (in my opinion) is to write native code for mobile and desktop (no air or flascc involve) and use flascc for the flash/web platform. It's harder, because you have write portable native code (lots of abstraction), but you mostly have the same problem with native extension.

  • Adobe Flash Pro CS6 removes the native extensions section of my app descriptor

    In CS5.5 I had some problems with native extensions, but that's ok, since CS5.5 was not ANE-aware (it was released before that).
    But in CS6, it's even worse. It just deletes the whole <extensions>...</extensions> from my "xxx-app.xml" descriptor file each time I publish my SWF. Why?
    It shouldn't do that! CS6 supposedly works with ANEs (it even has a special ANE icon in the "ActionScript settings" window, whereas CS5.5 didn't), so why is it removing my extensions from the descriptor?

    To the right under "Target: AIR for Android" or "Target:AIR for iOS", click the wrench and go to the "permissions" tab. Check "Manually manage permissions and manifest additions".
    I know that helped when it was messing with my intent filters and other stuff I entered (Stuff inside the CDATA/manifestadditions).
    Not sure if it helps with the <extensions> tag, but its not deleting mine...
    You could also try putting <extensions> directly after </android>, thats where mine is. I suspect some entries have to be in a specific order.

Maybe you are looking for

  • HP Photosmart C6180 won't scan

    Please could someone talk me thru how to add scanning software to my Mac? I am new to Mac. This printer works great with the pre-installed drivers that came with the Mac. But I can't scan at all. I think there is a new driver which I can get from Hp

  • Help needed in retrieving data

    Hi, I have a table ego_attrs which stores column names of a table ego_mtl_sy_items_ext_b. ego_attrs ego_mtl_sy_items_ext_b col1 col1 col2 col3 col2 x1 x2 x3 (Data) col3 I'm supposed to retrieve the column names from ego_attrs and compare with the col

  • Need to add TEST RUN in the Z  Program (URGENT)

    Dear All, I have to add a TEST RUN check Box in the Selection screen,same as Tcode:MRRL. Current Functionality: When we run this Z program,this will update the Local file data into DATABASE,will create a list stating the number of records updated and

  • Technical support message in Portal

    Hello guys, Sometimes due to technical problems or due to technical interventions, we would like to post a message in Portal with a little message like "Due to technical problems, system is unavailable. Apologizes" and at the same time lock every use

  • Prerequisite config steps for creating a lease-in contract

    Hello Gurus, Could anyone please advice on the config steps that are required for creating a lease- in contract. Thank you