Native extensions with AIR 3.3

Did someone successfully compile with ADT native extensions like com.adobe.Vibration with AIR 3.3 ?
Thank you !
(Since i've moved to 3.3, it doesn't work anymore)

Hi,
I have tried reproducing your issue but I am not able to reproduce it , following is the code which I am using in my app :
package
import flash.display.Sprite;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import com.adobe.nativeExtensions.Vibration;
import flash.events.*;
import flash.utils.Timer;
import flash.text.TextField;
import flash.text.TextFormat;
import net.hires.debug.Stats;
public class TestVibration extends Sprite
private var subsButton:CustomButton = new CustomButton("Press me!");
private var tt:TextField = new TextField();
private var tf:TextFormat = new TextFormat();
public function TestVibration()
super();
addChild ( new Stats() );
tf.size = 20;
tf.bold = true;
tt.x=0;
tt.y =450;
tt.height = stage.stageHeight;
tt.width = stage.stageWidth;
tt.border = true;
tt.defaultTextFormat = tf;
addChild(tt);
// support autoOrients
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;
var myTimer:Timer = new Timer(2000, 1);
myTimer.addEventListener(TimerEvent.TIMER, timerHandler);
myTimer.start();
subsButton.x = 150;
subsButton.y=10;
subsButton.addEventListener(MouseEvent.CLICK,subsButtonHandler);
stage.addChild(subsButton);
public function subsButtonHandler(e:MouseEvent):void{
trace("button pressed");
tt.appendText("\n Button pressed!");
public     function timerHandler(e:TimerEvent):void
var vibe:Vibration;
if (Vibration.isSupported)
trace("1");
trace("12");vibe = new Vibration();
trace("13");vibe.vibrate(2000);
trace("14");
trace("15");
I am using the ANE and SWC provided at
http://download.macromedia.com/pub/developer/air/ane/Vibration.zip and I am using the target ipa-ad-hoc on device iphone4 .
Can you please specify if you are doing something else in your app?It would be great if you can send your sample app with the steps to reproduce @ [email protected] ,so that we can reproduce the issue .
Thanks,
Nimisha

Similar Messages

  • Native Extension for AIR publishing error : framework not found

    Hello,
    I'm trying to build an iOS app using native extensions for AIR, but when I publish, I've an error message saying : framework not found
    I tried with this ANE for GameCenter integration : https://github.com/StickSports/ANE-Game-Center
    it says " ld: framework not found GameKit "
    Same problem with GREE Platform SDK for AIR :
    https://docs.developer.gree.net/en/globaltechnicalspecs/#sdkforair
    it says " ld: framework not found CoreTelephony "
    The thing is that these frameworks are already included, I guess.
    I'm using flash cs6 on mac, and I've included the path to iOS SDK in the publishing settings.

    Are you using the ANE from there or are you recompiling the ANE at your end?
    If you are recompiling, please make sure that you are using the platform.xml file they have provided.
    If you are using their precompiled ANEs, probably, the path to iOS SDK is not correct. It should be upto the folder iPhoneOSx.y.sdk.

  • IOS Native Extension with external Framework

    Hi there,
    I am developing a native extension for iOS based CityGrid framework. I compiled .a file and packaged it to ANE file. However when I am trying to compile the app, compiler shows me the error:
    Error occurred while packaging the application:
    Undefined symbols:
      "_OBJC_CLASS_$_CityGrid", referenced from:
          __objc_classrefs__DATA@0 in libcom.example.SomeAPI.a(SomeAPI.o)
    ld: symbol(s) not found
    Compilation failed while executing : ld64
    I tried few options in XCode. However I still have the error.
    Is anybody tried to do a native extension with external frameworks?

    How did you compile your ane file? I met same issue before.
    adt -package -target ane myextension.ane extension.xml -swc mySwc.swc -platform iPhone-ARM library.swf libmylib.a -platformoptions myplatformoptions.xml
    lnside myplatformoptions.xml, I linked all the framework and shared libraries, as following
    <platform xmlns="http://ns.adobe.com/air/extension/3.1">
         <sdkVersion>5.1</sdkVersion>
         <linkerOptions>
              <!-- to use the CoreMotion framework -->    
              <option>-framework CoreMotion<option>
              <!-- to link with the libiconv.dylib -->
              <option>-liconv</option>
         </linkerOptions>
    </platform>
    Please let me know, if it does work.

  • Publishing air apps with native extension with Flash CS6 on Windows

    Hi all,
    is there any trick to publish air apps with Flash CS6 on Windows?
    I tried all native extensions from devnet, but nothing work to me.
    I read on Mac is possibility to specify the iOS SDK folder in publish
    settings, but on Windows it´s missing. 
    Is there anybody who has some experiences with publishing apps
    with native extensions for iOS and Android with windows Flash CS6?
    Thanks for all advices.

    I sympathize. I recently found a native alert for iOS and Android that's working with Flash CS6 on Windows with AIR 3.2.0.2070 but not AIR 3.2.0.2060. You can get the ANE here:
    http://www.jampot.ie/ane/
    Haven't tried the other ones. Let us know if you decide to try them.
    The sample code they have on the page doesn't work with the native alert. Here's the code I created - it's a document class for a .fla that has one dynamic TextField and one Button component on the stage :
    http://pastebin.com/DsxR9nJ4

  • Aurasma Native Extension for AIR

    I'm wondering if anyone can help. Aurasma (the Augmented Reality system) supplies a kernel and XCode/Android template files for including their app within your own. Basically, they provide and interface and a library (.a file) so that you can include a button to launch their app overtop of yours. A close button within their app will return you to your own.
    I've made attempts to build this into a Native Extension, so that their app will launch in a native window above the Air app. The process I'm going through right now causes the Flash CS6/Air 3.3 compiler to crash at the end of the compile (resulting in no .ipa being built).
    Before going into too much detail as to what is involved and where things could be going wrong - has anyone had any experience building an app with Aurasma's kernel? Anyone attempted to build a native extension using Aurasma?
    Thanks in advance!

    Are you using the ANE from there or are you recompiling the ANE at your end?
    If you are recompiling, please make sure that you are using the platform.xml file they have provided.
    If you are using their precompiled ANEs, probably, the path to iOS SDK is not correct. It should be upto the folder iPhoneOSx.y.sdk.

  • Successfully using a Native Extension with Flash CS5.5 Pro, having issues

    Hey all,
    I'm trying to use a native extension due to an app rejection about the new storage guidelines. I'm hoping someone can help me figure out how to use a native extension from Flash CS5.5 and the adt command line utility (I've never used before).
    Apples storage guidelines in 5.0.1 require files saved to Documents (and other places) to be marked with the icloud "do not back up" bit. I'm trying to use Adobe's IOS 5.0.1 data storage native extension to do that as I have file sharing enabled and my app downloads files I want the user to be able to copy to their desktop.
    From the bits and fragments I'm reading all over, getting it to compile means using the command line adt tool (I've never used it before) because Flash Pro CS5.5 doesn't support native extensions. Also, this native extension requires a v14 SWF published (11.1) and CS5.5 only goes up to 10.2 (or higher if you install the players).
    I edited the AiriPhone.xml file and pointed it to an AIR 3.1 airglobal.swc and I have AIR 3.1 overlayed in flash. I can't test AIR for iOS anymore after that change but I can get it to compile a SWF. The adt command line adt utility stopped complaining that my SWF version was 13 when it needed 14, so I assume this worked?
    I am trying to compile a debug version so I can see trace statements to see if the native extension reports success on changing the bit. Here is my command line cobbled together from scraps of info on adobe.com and the -help data:
    adt -package -target ipa-debug -connect 192.168.1.80 -provisioning-profile myApp.mobileprovision -storetype pkcs12 -keystore myApp.p12 myApp.ipa myApp-app.xml myApp.swf dat AppIconsForPublish Default-Landscape.png Default-LandscapeRight.png -extdir extensionDir
    Before this iCloud change this app published directly from Flash Pro CS5.5 without any issues. I am only running into issues getting this app to work with this native extension and/or published correctly.
    I am including the folders "dat" and "AppIconsForPublish" as well as splash screens (this app is landscape-only) as well as that extension in the folder extensionDir.
    After putting in my password my app compiles into an IPA which I can drop into iTunes. It has the same general size as the IPA generated from Flash Pro. The icon is correct, etc.
    When I sync this file, the progress bar goes across, I see it loading on my iPad and then once it goes to install I get a popup saying "iTunes Sync: 'myApp' failed to install."
    Is there anything obvious wrong with my adt line? Has anyone else used this native extension? Ideas on what I can do to fix this?
    No, unfortunately I did not build this with Flash Builder. I am an avid user of it now and this would be a moot point as it uses ANEs and changes SWF versions trivially. I have to get this to compile using Flash Pro CS5.5 though.
    Any help is greatly appreciated!
    edit:
    Just FWIW, after I updated the .xml to use the latest AIR and such (so the version is 14) I removed the extension, exported purely from Flash Pro CS5.5 and the app works fine. As soon as I enable the <extension> in the XML I can no longer install the app. This just appears to be a noob adt publish issue.

    My app downloads PDFs, movies and other information-esque files and saves them to the apps Documents folder so they can be retrieved via file sharing. These files not being in something purgable like /Library/Caches and not having the "do not back up" bit is why I was rejected.
    update: It's definitely my command line building.. I took out the native extension completely and published from flash to an IPA and it works. I then run adt on the same SWF that just worked and it fails to install. So the install failing is my command line. I see this article and my command line is very similar. I'm really uncertain why it's failing.

  • Associate file extension with air app on Android

    Hi,
    I am trying to associate a file extension with my air app on Android. My goal is to be able to start my app by clicking on a file with a specific file type from either a file manager or mail app. I have found a solution that in theory would work in native, but does not with air somehow.
    In the .xml-file for the app, under the <android> tag I have written:
    <activity>
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:scheme="file" />
                <data android:pathPattern=".*\\.csml" />
                <data android:host="*" />
            </intent-filter>
        </activity>
    Does anyone have an idea how this could be solved?
    Thanks in advance
    Jens

    If it works in a native app, it should also work in an AIR app in this case. Can you verify that it does work in a native app?
    See also:
    http://www.mail-archive.com/[email protected]/msg47862.html//www.mail-archive.com/[email protected]/msg47862.html
    http://stackoverflow.com/questions/1733195/android-intent-filter-for-a-particular-file-ext ension

  • Creating ios native extension with 3rd party frameworks

    Hello,
    I'm new to Air development and creating a ios native extension for my flex mobile project.I want to include third party frameworks such as admob,facebook,chartboost in my ANE
    I have tried to link frameworks using packagedDependencies but it dosn't work.(gives me an error telling that "armv7 not supported")
    am I doing something wrong? or is there any proper way to link frameworks?
    platformoptions.xml
    <platform xmlns="http://ns.adobe.com/air/extension/4.0">
         <sdkVersion>7.1</sdkVersion>
         <linkerOptions>
              <option>-ios_version_min 6.1</option>
              <option>-framework StoreKit</option>
              <option>-framework CoreGraphics</option>
              <option>-framework UIKit</option>
              <option>-framework Foundation</option>
         </linkerOptions>
         <packagedDependencies>
             <packagedDependency>frameworks/Chartboost.framework</packagedDependency>
             <packagedDependency>ios/libAdExtension.a</packagedDependency>
        </packagedDependencies>
    </platform>
    extensionxml
    <extension xmlns="http://ns.adobe.com/air/extension/4.0">
        <id>com.my.extensions</id>
        <versionNumber>1</versionNumber>
            <platforms>
                <platform name="iPhone-ARM">
                <applicationDeployment>
                <nativeLibrary>libAdExtension.a</nativeLibrary>
                <initializer>ExtInitializer</initializer>
                <finalizer>ExtFinalizer</finalizer>
                </applicationDeployment>
            </platform>
        </platforms>
    </extension>
    -command
    /Applications/Adobe\ Flash\ Builder\ 4.7/sdks/4.6.0+airSDK4.0/bin/adt -package -target ane adExtension.ane extension.xml -swc bin/AdsLibrary.swc -platform iPhone-ARM library.swf frameworks/Chartboost.framework ios/libAdExtension.a -C ios . -platformoptions platformoptions.xml
    -error
    ld: warning: ignoring file /var/folders/3r/x0bh_4.... file was built for unsupported file format ( 0Undefined symbols for architecture armv7:
      "_OBJC_CLASS_$_Chartboost", referenced from:
    ld: symbol(s) not found for architecture armv7
    Compilation failed while executing : ld64
    *I used lipo to combine simulator and device .a files
    please help

    From the catalog Chartboost.framework copy the static library file Chartboost(path: Chartboost.framework/Versions/A/Chartboost) and use it instead of .framework :
    <platform xmlns="http://ns.adobe.com/air/extension/4.0">
         <sdkVersion>7.1</sdkVersion>
         <linkerOptions>
              <option>-ios_version_min 6.1</option>
              <option>-framework StoreKit</option>
              <option>-framework CoreGraphics</option>
              <option>-framework UIKit</option>
              <option>-framework Foundation</option>
         </linkerOptions>
         <packagedDependencies>
             <packagedDependency>frameworks/Chartboost</packagedDependency>
             <packagedDependency>ios/libAdExtension.a</packagedDependency>
        </packagedDependencies>
    </platform>
    adt -package -target ane adExtension.ane extension.xml -swc bin/AdsLibrary.swc -platform iPhone-ARM library.swf frameworks/Chartboost ios/libAdExtension.a -C ios . -platformoptions platformoptions.xml

  • Time capsule 1st generation - extension with air port extreme

    My parents use a time capsule (1st generation) as wireless lan device. As they run a boarding house they wish to provide free internet access to all of their guests (in all rooms). Therefore I bought an air port extreme station to extend the network as this product now (finally) includes the option »guest network«.
    The question is the following: *Should I keep the time capsule as basic device connected to the modem and use the air port extreme as extension or do you recommend to set it up vice versa?*
    I checked the range of the time capsule: It can be used in already in the first floor but not in the second anymore.
    I am really unsure how I should approach this topic and I hope more expirienced users can provide some help to this issue. Maybe you can also give me some security advice. In order to protect kids from misusing this new possiblity I was thinking of using opendns to block certain websites. Maybe there are also betters ways of doing this?

    Need a bit more info.
    Now this is what happens when I plug it in:
    Plug it into power?? The main router?? Sorry I am unclear what you are plugging it into.
    It sounds like you have not done the setup.
    The TC should be in bridge and plugged into the current modem router you have.. and powered on full time.
    If you cannot access it via the utility, I strongly suggest you buy the apple usb to ethernet dongle.. which helps air people no end.. or use any other computer that has a real ethernet port.
    Otherwise set to factory and start over. (this will not do anything to what you already have on the disk).
    Hold in reset and power on the TC.. wait about 10sec until the front led rapidly flashes. .then you can connect the computer.. and do the setup.. choose bridge in the Network section of the utility and update the TC.
    Then you can plug it into the main router and access it and internet at the same time.. either by TC wireless or the main modem wireless.
    Please note. .Gen1 TC is only going to last very little time.. it is already well past the average lifespan.. many died at 2years.. most gone by 4years.. plan on storing nothing important on it.

  • Has anyone anywhere managed to get "AIR Native Extensions" to work with Flash CS 5.5?

    I'm trying to integrate Adobe's "Gyroscope" example of ANE to work from Flash Professional CS 5.5.
    http://www.adobe.com/devnet/air/native-extensions-for-air/extensions/gyroscope.html
    Apparently, one has to use the somewhat crude "ADT" command-line tool to build an app that uses Native Extensions.
    Unfortunately, I cannot get past the numerous errors ADT is throwing at me.  The latest is:
    unexpected failure: inputs not set
    java.lang.IllegalStateException: inputs not set
              at com.adobe.air.ApplicationPackager.createPackage(ApplicationPackager.java:62)
              at com.adobe.air.ADT.parseArgsAndGo(ADT.java:556)
              at com.adobe.air.ADT.run(ADT.java:413)
              at com.adobe.air.ADT.main(ADT.java:463)
    Unfortunately, I'm not an advanced developer, so I really don't know what any of that means. (But I'm sure if I can just get this one example to compile and run, I'll be better able to perform the necessary tasks in the future.)
    Can someone PLEASE help me?
    Thanks.
    Mike

    If you are looking for input from others, you are more likely to find people with either similar problems or complaints in the Flash General Forum (http://forums.adobe.com/community/flash/flash_general?view=discussions) rather than here in the Actionscript 3 forum.  If you scan thru it for the past few weeks/months you might even find someone with the same problem.

  • Adobe AIR Native Extensions

    We are planning to choose a new platform of our new convergent media device. Like to know whether we can develop our platform using Adobe AIR Native Extension for Linux OS?
    I came to know that Adobe has subscription based suuport for developers. If that is the case we can purchase support for development assistance on Linux based AIR Native Extensions. What we need are the FRE libraries and C code to run the Native extensions on Linux. I had acces to AIR 3.0 for Linux sometime back. Unfortunately our project look some time to mature.
    Please let us know about this so that we can base our plans on AIR/Linux native extensions.

    Four part Series, this is link to first part
    http://quetwo.com/2011/10/31/creating-an-windows-air-native-extension-with-eclipse-part-1/
    Another one
    http://www.flexjunk.com/2011/11/30/developing-an-air-native-extension-for-osx-and-windows- in-c/
    Hope those help.

  • Native extension to unzip a file crash my air app

    Hello,
    I have a problem with a native extension for android
    I want to unzip a file
    my java code
    File f = new File("my zip file");
    File outputDir = new File ("output folder");
    ZipHelper.unzip(f, outputDir);
    and
    import java.util.zip.*;
    import java.io.*;
    import java.util.Enumeration;
    import org.apache.commons.io.IOUtils;
    import android.util.Log;
    public class ZipHelper
    static public void unzip(File archive, File outputDir)
    try {
    Log.d("control","ZipHelper.unzip() - File: " + archive.getPath());
    ZipFile zipfile = new ZipFile(archive);
    for (Enumeration e = zipfile.entries(); e.hasMoreElements(); ) {
    ZipEntry entry = (ZipEntry) e.nextElement();
    unzipEntry(zipfile, entry, outputDir);
    catch (Exception e) {
    Log.d("control","ZipHelper.unzip() - Error extracting file " + archive+": "+ e);
    static private void unzipEntry(ZipFile zipfile, ZipEntry entry, File outputDir) throws IOException
    if (entry.isDirectory()) {
    createDirectory(new File(outputDir, entry.getName()));
    return;
    File outputFile = new File(outputDir, entry.getName());
    if (!outputFile.getParentFile().exists()){
    createDirectory(outputFile.getParentFile());
    Log.d("control","ZipHelper.unzipEntry() - Extracting: " + entry);
    BufferedInputStream inputStream = new BufferedInputStream(zipfile.getInputStream(entry));
    BufferedOutputStream outputStream = new BufferedOutputStream(new FileOutputStream(outputFile));
    try {
    IOUtils.copy(inputStream, outputStream);
    catch (Exception e) {
    Log.d("control","ZipHelper.unzipEntry() - Error: " + e);
    finally {
    outputStream.close();
    inputStream.close();
    static private void createDirectory(File dir)
    Log.d("control","ZipHelper.createDir() - Creating directory: "+dir.getName());
    if (!dir.exists()){
    if(!dir.mkdirs()) throw new RuntimeException("Can't create directory "+dir);
    else Log.d("control","ZipHelper.createDir() - Exists directory: "+dir.getName());
    i copy the file commons-io-2.4.jar (I get at http://commons.apache.org/proper/commons-io/download_io.cgi) in the lib folder of eclipse.
    in a native android app, this code work fine
    in a native extension for air, my air app crash
    LogCat in eclipse return
    NoClassDefFoundError: org.apache.comons.io.IOUtils.copy
    IOUtils class is not in commons-io-2.4.jar ???
    thanks

    Hello,
    I have a problem with a native extension for android
    I want to unzip a file
    my java code
    File f = new File("my zip file");
    File outputDir = new File ("output folder");
    ZipHelper.unzip(f, outputDir);
    and
    import java.util.zip.*;
    import java.io.*;
    import java.util.Enumeration;
    import org.apache.commons.io.IOUtils;
    import android.util.Log;
    public class ZipHelper
    static public void unzip(File archive, File outputDir)
    try {
    Log.d("control","ZipHelper.unzip() - File: " + archive.getPath());
    ZipFile zipfile = new ZipFile(archive);
    for (Enumeration e = zipfile.entries(); e.hasMoreElements(); ) {
    ZipEntry entry = (ZipEntry) e.nextElement();
    unzipEntry(zipfile, entry, outputDir);
    catch (Exception e) {
    Log.d("control","ZipHelper.unzip() - Error extracting file " + archive+": "+ e);
    static private void unzipEntry(ZipFile zipfile, ZipEntry entry, File outputDir) throws IOException
    if (entry.isDirectory()) {
    createDirectory(new File(outputDir, entry.getName()));
    return;
    File outputFile = new File(outputDir, entry.getName());
    if (!outputFile.getParentFile().exists()){
    createDirectory(outputFile.getParentFile());
    Log.d("control","ZipHelper.unzipEntry() - Extracting: " + entry);
    BufferedInputStream inputStream = new BufferedInputStream(zipfile.getInputStream(entry));
    BufferedOutputStream outputStream = new BufferedOutputStream(new FileOutputStream(outputFile));
    try {
    IOUtils.copy(inputStream, outputStream);
    catch (Exception e) {
    Log.d("control","ZipHelper.unzipEntry() - Error: " + e);
    finally {
    outputStream.close();
    inputStream.close();
    static private void createDirectory(File dir)
    Log.d("control","ZipHelper.createDir() - Creating directory: "+dir.getName());
    if (!dir.exists()){
    if(!dir.mkdirs()) throw new RuntimeException("Can't create directory "+dir);
    else Log.d("control","ZipHelper.createDir() - Exists directory: "+dir.getName());
    i copy the file commons-io-2.4.jar (I get at http://commons.apache.org/proper/commons-io/download_io.cgi) in the lib folder of eclipse.
    in a native android app, this code work fine
    in a native extension for air, my air app crash
    LogCat in eclipse return
    NoClassDefFoundError: org.apache.comons.io.IOUtils.copy
    IOUtils class is not in commons-io-2.4.jar ???
    thanks

  • 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.

  • AIR 3 RC Native Extensions On Mac OS X Error

    I'm getting an error when trying to compile a native extension (.framework) for Mac OS X 10.7 with XCode 4.1; I've included "FlashRuntimeExtension.h" in the project but not sure if i'm missing something else as there is a lack of documentation for Native Extensions with XCode for a Mac Framework (the error I get is "_FRENewObjectFromBool" - symbol(s) not found for architecture i386.
    I have AIR 3 RC and the latest Flash installed on my machine.
    I'm not sure what i'm missing?
    Thanks!

    Hi lemonility,
    Could you try the following steps out and let me know if they help?
    1) Select the project in the project navigation window which will show project summary on right
    2) Select 4th tab build phases
    3) Select Link binary with library option
    4) Add framework for which you are getting
    5) Move the framework from main folder to the frameworks folder
    6) Build it again and errors should be gone.
    Thanks,
    Chris

  • Application with native extension crashes onstart

    I've created a flex mobile project with ios native extension(with ad frameworks such as facebook,chartboost ) and linked 3rd party frameworks.
    when I start the application,it's crashes.I can't see any logs.is this a problem with linking 3rd party frameworks?
    framework didn't work properly with it's directory structure so I followed below link. copied header files .a file to the top of the directory in the 3rd party framework and
    removed other folders.
    http://www.marietta.co.jp/diary/?action_diary_detail=1&id=681
    <platform xmlns="http://ns.adobe.com/air/extension/15.0">
         <sdkVersion>8.0</sdkVersion>
         <linkerOptions>
              <option>-ios_version_min 6.1</option>
              <option>-framework UIKit</option>
              <option>-framework Foundation</option>
              <option>-framework CoreGraphics</option>
              <option>-framework AdSupport</option>
              <option>-framework StoreKit</option>
         </linkerOptions>
         <packagedDependencies>
             <packagedDependency>frameworks/Chartboost.framework</packagedDependency>
        </packagedDependencies>
    </platform>
    adt -package -target ane AdExtension.ane extension.xml -swc bin/AdsLibrary.swc -platform iPhone-ARM ios/library.swf ios/libAdExtension.a frameworks/Chartboost.framework -C ios . -platformoptions platformoptions.xml
    please help

    I've been trying to make a Chartboost ANE as well, and I have the same problems as you.
    First of all, it's easier to just use the headers and Chartboost static library directly in the Xcode project, instead of the Chartboost.framework. This way, your own .a file will include the Chartboost library, and you don't need to package it in the ANE. The resulting ANE will be smaller as well.
    But whichever way you do it, the app will still crash. The error I get is the following:
    <Error>: -[__NSCFString isEqualToNumber:]: unrecognized selector sent to instance 0x17802a4e0
    This seems to be a problem with newer versions of the Chartboost SDK specifically. So for now I'm still using Chartboost 4.0 in my ANE. Unfortunately it doesn't contain some of the new features I'd like to use.
    I've contacted Chartboost support about it. But they say they don't support AIR, and their SDK is working fine when used in a regular native app.
    So somehow the combination of Chartboost and AIR is making it crash... If anyone has been able to get it working with the new Chartboost SDK, I would sure like to hear about it!

Maybe you are looking for

  • How to troubleshoot Windows 8 Mail app connectivity issues with Google Business Apps?

    My company went to Google Apps last year. I am unable to connect Mail App on Windows 8 to my corporate Google account. I am using m.google.com for server with SSL enabled, but no luck. I also enabled bit locker as my company policy requires device en

  • XSLT and Call transformation

    Hi Using <b>XSLT</b> and <b>Call transformation</b> (XSLT scheme) to convert XML file to html the problem is that line breaks in xml are ignored when passing the call tranformation. <b>Note in xml look like:</b> <com:Note><![CDATA[ Serie 87% 0,000000

  • Display resolution on ATI Radeon 7500

    Just bought a LG 22" which runs 1650x1050 native resolution (WSXGA+) and although the dropdown box in XP says I'm there I'm really not. The fonts are obviously wider than they should be,images that are 1650x1050 require scrolling, etc. Any idea what

  • HT2473 how do i remove a menu item?

    i have accidentally added a menu item into a drop down menu. how can i remove it? my thanks in advance

  • Xellerate is in failed state as initialization failed state.

    Hi, I am facing an issue on one of my app server which is on clustered environment. I am getting the follwing error 09/08/18 18:58:06 Error initializing the Oracle JMS Resource provider for Queues: Connection Cache with this Cache Name is Disabled 09