Native extension - compiler issue

Hi,
First, I compile an iOS app with a native extension developped by ADOBE : http://www.adobe.com/devnet/air/native-extensions-for-air/extensions/vibration.html#articl econtentAdobe_numberedheader_3
It's work well
Then, I made myself the iOS library on xcode. It's OK as well
Then, I made the ANE file following the tutorial http://custardbelly.com/blog/2011/09/21/air-native-extension-example-ibattery-for-ios/. It's seem OK
I create my air app with Flash Builder. I load ANE, SWC...everything seem ok
When I compile my Iphone Application with Flex, there is this error :
An erreor appears during the application packaging (my translation):
ld warning: in C:\\Users\\Tony\\AppData\\Local\\Temp\\c6468656-be35-4f05-8d51-0dd54063cefd/libcom.adobe. LEDTorch.a, file is not of required architecture
Undefined symbols:
  "_ExtFinalizer", referenced from:
      _g_com_adobe_air_fre_fmap in extensionglue.o
  "_ExtInitializer", referenced from:
      _g_com_adobe_air_fre_fmap in extensionglue.o
ld: symbol(s) not found
Compilation failed while executing : ld64
Someone could help me?
I'm working on this bug for 2 days
Thanks in advance !
Emmanuel

Hi,
Apparently, the issue  is the following:  (find in the forum of
http://www.liquid-photo.com/2011/10/28/native-extension-for-adobe-air-and-ios-101/#comment -322
Apparently X-Code was trying to build NativeAlert.m as Objective-C++ source
instead of Objective-C source. Silly mistake really. It took starting the
project over again and trauling through the project settings to figure out
what was wrong. Oh well, all sorted now.
But i didn't succeed in setting the project with the corrects parameter.
Could you help me?
Thanks in advance
Regards
E.Fuchs
2012/2/10 Saumitra Bhave <[email protected]>
   Re: Native extension - compiler issue  created by Saumitra Bhave<http://forums.adobe.com/people/SaumiB>in
Mobile Development - View the full discussion<http://forums.adobe.com/message/4198519#4198519>

Similar Messages

  • Native extension, compilation error in flex

    Hello,
    I use flex 4.6.
    I try to include native extension in my AIR/IOS project, but when I compile, i always have a runtime error whatever the native extension i try.
    Exemple :
    VerifyError: Error #1014: Class com.custardbelly.air.extensions.battery.ios::Battery could not be found.
    I link in my project properties the ane file and the associate swc file.
    in the app xml file I have the right extensions tag :
    <extensions>
        <extensionID>com.custardbelly.ibattery</extensionID>
    </extensions>
    What do I wrong ?
    Thanks.
    PS : sorry for my english...

    Make sure the ANE file has no error if you created it.
    Add the ANE file into your project Build Path, then check it into Build Packaging->Apple IOS->Native Extensions.
    BTW, I built my native extension for displaying PPT file in UIWebView from Objective-C. Then I tried it on my PC to get the IPA file, it did not work out, but it works on my mac
    I don't what exactly the reason is. You can try a mac if you are using windows.

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

  • Inn-app purchase native extension by Adobe doesn't work when the project is compiled for over-the-air installation

    Hi!
    I need the IAP functionality in my project. I've take the Inn-app purchase native extension by Adobe. During the developing process the extension worked fine. But when I've compiled my app for OTA (with corresponding certificate and provisioning file) the extension stops work. When the app calls purchase method nothing happens (when the app was compiled with development certificate and provisioning file I could run the full purchase process)
    Olga

    I've fixed the problem. It was related to the wrong configuration of the bundle name.

  • How to use single ant build script to package the application with and without native extensions

    Hi,
    I am using iOS native extensions for Adobe air. For this I am listing the extensions in the application descriptor file. Since the package with native extensions are meant to run only on device, I want my build script to work without native extensions too to be able to run on simulator. Is this manadatory that I need two separate application descriptors/basically two build scripts to compile and package them? Please suggest and let me know if more explanation is needed.
    Thanks,
    Swathi.

    Hi
    This is a known issue addressed by CR205204
    As you said, IBM actually does not have rt.jar in its JDK - they have moved contents of rt.jar into various jars.
    IBM is not using org/apache/crimson/tree/ in their JDK at all.So the error shows up in the end of build even if it succeeds
    You may need to add crimson.jar to wlwBuild classpath, since it is not part of IBMs JDK.
    Note: the build will work even w/o crimson.jar giving a non build related IDE exception in the very end.
    Thanks
    Vimala

  • Native extensions and captive runtime

    I'm trying to use native extensions and captive runtime. When I try to create a release, the IDE shows this message "Native extensions are being used in the project but are not supported by the CAPTIVE_RUNTIME_BUNDLE package type. Runtime issues can occur." and I can't continue.
    I've been able to compile it using the command-line, but I'm worried about the "runtime issues" that can occur.

    Hi,
    Sorry, just verified that export release build, with Native Extensions and Captive Runtime bundled for Desktop projects has been fixed and is available in the final release of Flash Builder 4.7.
    Thanks,
    Hari

  • External library inside Air native extension for android

    Hello everyone,
    First, I've been looking throught this topics
    - http://stackoverflow.com/questions/7732742/air-3-native-extensions-for-android-can-i-how-t o-include-3rd-party-libraries
    - http://stackoverflow.com/questions/24626380/how-to-include-additional-jar-in-android-nativ e-extension-for-adobe-air-mobile
    I got a similar problem. But not exactly the same. And the solution didn't worked for me :(.
    First of all, I don't have any visible error.
    -I can easily talk between java and action script.
    -The gateway is set without problems.
    My problem comes when, from my java-side-part of the extension, I try to call a 3rd party library. This library is (and I think this is where I do something  wrong) linked to my project as an external lib, in .jar format.
    So when I make a call to 3rd party library, it just doesn't print anything. Neither on the adobe part or on the java part. The logs that are before my call are printed but not the ones after.
    I tried different solutions that are:
    -Taking all compiled class files of my external lib and add it inside the main native extension jar [link1]
    same result (no errors)
    -including the 3rd party jar inside the ANE by adding a dependence file that require the .jar [link2]
    with this method i got this error that I don't get
    > aapt tool failed:ERROR: input directory '--auto-add-overlay' does not exist
    My third party library also include's itself some external .jars so do I need to include every jars inside the same packaged jar?
    I can see that a lot of people are dealing with issues like that so my question would be:
    What is the best way to include 3rd party library inside android AIR Native Extension ?.
    For information, here is what I do to create the ANE
    >adt -package -target ane AirInfinitGameANE\AirInfinitGame.ane AirInfinitGameASLib\src\extension.xml -swc AirInfinitGameANE\AirInfinitGameASLib.swc -platform Android-ARM -C AirInfinitGameLib .
    - AirInfinitGameASLib: just the folder with the actionScript part and the config xml file
    - AirInfinitGameANE: folder in the one that will be the native extension
    - AirInfinitGameLib: the eclipse java project. I need to put in that folder the airInfinitgamelib.jar(extension jar) and the library.swf (from the swc file) in order to beeing able to compile the ANE.
    Here it is ! Thanks a lot for thoses who'll read me.

    I had the same problem recently and fixed it as follows;
    - Extract the 3rd party jar file and copy the class folder (usually named "com" in the root of the jar) to my project.
    - Under Project Properties -> Java Build Path -> Libraries click "Add class folder" and add the "com" folder you just extracted from your .jar.
    Hope this helps

  • 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

  • Testing Unsupported Native Extensions in Flash CS6

    I'm currently working on an iOS application using Flash CS6 Pro targeting the AIR 3.3.0.3560 SDK. In order to compile using the iOS 5.1 SDK (to support retina displays) from Flash CS6 it's necessary to add in a native extension in order to specify the iOS SDK location.
    I've add the 'Vibration' native extension (com.adobe.extensions.Vibration.ane) library to my project, and of course supplied the full path to the iOS SDK. Publishing to the device works just fine, but an issue has crept into my everyday workflow as I can no longer test using ADL as I always get the following error via the output window:
    "Test Movie terminated.
    The content cannot be loaded because there was a problem loading an extension: Error: Requested extension com.adobe.Vibration is not supported for MacOS-x86."
    Any ideas how to go about testing apps/movies that use Native Extensions locally using ADL?
    Is it a matter of having to create another target for 'MacOS-x86' (or Windows) which is simply used for local testing purposes?
    BTW - ideally it would be possible to compile from Flash CS6 using the iOS SDK without having to specify a native extension (if one isn't required), but in the meantime this appears to be a necessary evil.

    Hi,
    Its probably because the number of warnings in your application is very high and its a known issue that packaging fails in Flash Pro/Flash Builder, if the number of warnings is high.
    You may want to suppress the warnings using -w in the platform.xml file and repackage your ANE using the -platformoptions switch. Then, you will be able to package your app in Flash Pro.
    If that’s not possible, you may just package your application on command line.
    Hope that solves your problem.
    Neha

  • Native extension on Mac OS X (Air 3)

    Hi
    I have a blocking issue for native extensions when targetting the MacOS-x86 platform. (in my case Snow Leopard)
    I succeded in packaging the ANE file, but I have this error when using it in my test app:
    [SWF] tekhnia.simpleAirNativeExtension - 2 871 octets après la décompression
    [SWF] simpleAirNativeExtensionTest.swf - 2 119 250 octets après la décompression
    Context: [object ExtensionContext] in /Users/vandrito/Documents/Projets/o3sui/.metadata/.plugins/com.adobe.flexbuilder.project. ui/ANEFiles/simpleAirNativeExtensionTest/macosx/simpleAirNativeExtension.ane
    ArgumentError: Error #3500: The extension context does not have a method with the name isSupported.
              at flash.external::ExtensionContext/_call()
              at flash.external::ExtensionContext/call()
              at tekhnia.org.simpleAirNativeExtension::simpleAirNativeExtension/isSupported()[/Users/vandr ito/Documents/Projets/o3sui/simpleAirNativeExtension/src/tekhnia/org/simpleAirNativeExtens ion/simpleAirNativeExtension.as:16]
              at simpleAirNativeExtensionTest/init()[/Users/vandrito/Documents/Projets/o3sui/simpleAirNati veExtensionTest/src/simpleAirNativeExtensionTest.mxml:15]
              at simpleAirNativeExtensionTest/___simpleAirNativeExtensionTest_WindowedApplication1_creatio nComplete()[/Users/vandrito/Documents/Projets/o3sui/simpleAirNativeExtensionTest/src/simpl eAirNativeExtensionTest.mxml:5]
              at flash.events::EventDispatcher/dispatchEventFunction()
              at flash.events::EventDispatcher/dispatchEvent()
              at mx.core::UIComponent/dispatchEvent()[E:\dev\4.y\frameworks\projects\framework\src\mx\core \UIComponent.as:13151]
              at mx.core::UIComponent/set initialized()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:1818]
              at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.y\frameworks\projects\framewo rk\src\mx\managers\LayoutManager.as:842]
              at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.y\frameworks\projects \framework\src\mx\managers\LayoutManager.as:1180]
    In fact it seems that the initializer is not executed. This is my extension declaration file:
    <extension xmlns="http://ns.adobe.com/air/extension/3.1">
       <id>tekhnia.simpleAirNativeExtension</id>
       <versionNumber>1.0.0</versionNumber>
       <name>tekhnia.simpleAirNativeExtension</name>
       <copyright>@2011 OpenTekhnia, Techniware</copyright>
       <platforms>
          <platform name="MacOS-x86">
             <applicationDeployment>
                 <nativeLibrary>simpleAirNativeExtension.framework</nativeLibrary>
                 <initializer>initNativeExtension</initializer>
                 <finalizer>doneNativeExtension</finalizer>
             </applicationDeployment>
           </platform>
        </platforms>
    </extension>
    That's my *.m file in the xcode framework project:
    #import "simpleAirNativeExtension.h"
    FREObject isSupported(FREContext ctx,
                    void *functionData,
                    uint32_t argc,
                    FREObject argv[]) {
        FREObject retObj;
        FRENewObjectFromBool(1, &retObj);
        return retObj;
    // contextInitializer()
    // The context initializer is called when the runtime creates the extension context instance.
    void contextInitializer(void* extData, const uint8_t* ctxType, FREContext ctx,
                            uint32_t* numFunctions, const FRENamedFunction** functionsToSet) {
        *numFunctions = 1;
        FRENamedFunction* func = (FRENamedFunction*)malloc(sizeof(FRENamedFunction) * (*numFunctions));
        func[0].name = (const uint8_t*) "isSupported";
        func[0].functionData = NULL;
        func[0].function = &isSupported;
        *functionsToSet = func;   
    // contextFinalizer()
    // The context finalizer is called when the extension's ActionScript code
    // calls the ExtensionContext instance's dispose() method.
    // If the AIR runtime garbage collector disposes of the ExtensionContext instance, the runtime also calls
    // contextFinalizer().
    void contextFinalizer(FREContext ctx) {
        // Nothing to clean up.
        return;
    // initMulticastSocket()
    // The extension initializer is called the first time the ActionScript side of the extension
    // calls ExtensionContext.createExtensionContext() for any context.
    void initNativeExtension(void** extDataToSet, FREContextInitializer* ctxInitializerToSet,
                             FREContextFinalizer* ctxFinalizerToSet) {
        *ctxInitializerToSet = &contextInitializer;
        *ctxFinalizerToSet = &contextFinalizer;
    // done()
    // The extension finalizer is called when the runtime unloads the extension. However, it is not always called.
    void doneNativeExtension(void* extData) {
        // Nothing to clean up.
        return;
    and that's my .h:
    //  simpleAirNativeExtension.h
    //  simpleAirNativeExtension
    //  Created by Victor Andritoiu on 17/10/11.
    //  Copyright (c) 2011 OpenTekhnia. All rights reserved.
    #import <Foundation/Foundation.h>
    #include "Adobe Air/FlashRuntimeExtensions.h"
    void initNativeExtension(void** extDataToSet, FREContextInitializer* ctxInitializerToSet,
                             FREContextFinalizer* ctxFinalizerToSet);
    void doneNativeExtension(void* extData);
    FREObject isSupported(FREContext ctx,
                          void *functionData,
                          uint32_t argc,
                          FREObject argv[]);
    void contextInitializer(void* extData, const uint8_t* ctxType, FREContext ctx,
                            uint32_t* numFunctions, const FRENamedFunction** functionsToSet);
    void contextFinalizer(FREContext ctx);
    @interface simpleAirNativeExtension : NSObject
    @end
    And finally my AS3 code for the lib:
    package tekhnia.org.simpleAirNativeExtension
              import flash.external.ExtensionContext;
              public class simpleAirNativeExtension {
      /** extension context */
                        protected var context: ExtensionContext;
                        public function simpleAirNativeExtension() {
                                  context = ExtensionContext.createExtensionContext("tekhnia.simpleAirNativeExtension", "");
                                  trace("Context: " + context + " in " + ExtensionContext.getExtensionDirectory("tekhnia.simpleAirNativeExtension").nativePath);
                        public function isSupported(): Boolean {
                                  return context.call("isSupported") as Boolean;
    and for the app using it:
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                                                         xmlns:s="library://ns.adobe.com/flex/spark"
                                                         xmlns:mx="library://ns.adobe.com/flex/mx"
                                                         creationComplete="init()">
      <fx:Script>
                        <![CDATA[
                                  import mx.events.FlexEvent;
                                  import tekhnia.org.simpleAirNativeExtension.simpleAirNativeExtension;
                                  protected function init(): void {
                                            var sane: simpleAirNativeExtension = new simpleAirNativeExtension();
                                            trace(sane.isSupported());
                        ]]>
      </fx:Script>
      <fx:Declarations>
      <!-- Placer ici les éléments non visuels (services et objets de valeur, par exemple). -->
      </fx:Declarations>
    </s:WindowedApplication>
    If anybody succeeded in using extensions on MacOS, please first tell me that s possible then, maybe help me on getting the error that I make.
    Thanks a lot
    Victor

    Workaround found:
    Need to launch adl as a line command (depends on your directory config, of course):
    /Applications/Adobe\ Flash\ Builder\ 4.6/sdks/4.6.0/bin/adl -runtime /Library/Frameworks/ -extdir /Users/vandrito/Desktop/simpleAirNativeExtension/launch/extensions -profile extendedDesktop /Users/vandrito/Documents/Projets/o3sui/simpleAirNativeExtensionTest/bin-debug/simpleAirN ativeExtensionTest-app.xml
    Pay attention to the library location: it is the one of the Air 3.1 install. Did not check the same trick with Flash Builder 4.6 Air install.
    Then use a fake web debugger to connect to the process (if compiled in debug mode). See here how to do (french):
    http://www.flex-tutorial.fr/2010/08/05/air-android-debug-sur-mobile-froyo-emulateur-avec-f lash-builder-4/
    Victor

  • Adobe Native Extensions Xcode 5?

    Dear all,
    I have a challenge. I have developed an Xcode library which I would like to make available for people who use Flash, mainly in order to create a nice interface since Flash is WAY better for creating interfaces than Xcode. Therefore I dived into creating an Adobe Native Extension as explained in this quite nice tutorial on the Adobe website. I came across many issues on the way but in the end I succeeded in creating a .ANE file which could be used in Flash. Flash clearly recognizes the names of the classes etc that are defined in the actionscript library, but as soon as it runs the scripts I get an error saying "Could not find the class <classname>". I considered me to be the most likely prolem so I decided to take a step back and build the code that is in the .zip file of the tutorial (so my hands did not touch the code other than compiling it) strangely I get the same errors again.
    There are 3 most likely things that could be at the essence of this:
    - The tutorial was written quite some time ago, by now we have Xcode 5 which might be different from the version used when writing the tutorial. Specificially it could be that some of the build settings are not compatible with adobe AIR. I am curious whether people have experience with this.
    *- I make a mistake in importing the library into my flash code.  I saw other posts on these forums where people have been making such mistakes. Some variations I tried are importing the .ANE directly (which another guy here also tried and reported that this would not work, strange but ok..) then I did it with the SWC and I also made the traditional mistake at first of not linking it externally. But after having solved that as well I am stuck. Maybe there is something else I should be aware of?
    - My Flash version and AIR versions are more modern than the ones in which this code was written, could it be that there are depreciation issues in the newer versions?
    * An interesting detail though is that I do manage to include the .ANE file of the original build which is also included in the .zip. Therefore I think it is unlikely that I make a mistake in importing the libraries, but nevertheless these things can never be truly ruled out.
    If it helps I can share the coding I used but as it is the tutorial code I do not expect that there are true mistakes in this.
    Do you have any experience in this? Or could you reproduce my error(or not and thus solving it?) Any help is appreciated!

    I'm pretty sure that you are wrong and don't understand what actually happening ;)  Native Extensions work well and users develops new one. I done myself extension using xcode 4.0 to 5.0 so everything is with it. Just need to find better tutorial. Last ANE finished 2 weeks ago that change iOS keyboard color.  Creation of ANE it's pretty simple job when you know what to do. I don't have any C++ and Objective-C background but this don't restrict me from ANE creation that works well.

  • Сertificate exception when building iOS native extension

    I have certificates for developer and distribution . I signed AIR apps using those certificates, and all work (I publiched 5 games to AppStore, all OK).
    But when I try to compile an iOS native extension, I get:
    Unable to build a valid certificate chain for the signer extension.
    Can someone help me, please? All my attempts failed to fix it.

    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.

  • Problems creating a Native Extension linking to a static library

    Hi,
    I'm trying to create my own Native Extension for iOs that will use another static library.
    My problem occurs when I try to package my app with ADT: after a lot of "ld warning: unexpected srelocation type 9" , I get a final error : "ld: thumb bl/blx out of range (-4468380 max is +/-4M)"
    This may be caused by the fact that the static library I am using needs the gcc setting "compile for thumb" turned off. I've done that in XCode to get my .a file to generate my .ane, but how could I tell ADT to take it into account ?
    Thank you for your help !

    Are you compiling for ARMv6 or ARMv7?
    With armv7, you do not need to switch off the "compile for thumb" anyways.
    Also, I guess you are using an iOS version greater than 4.3 to compile your native library. In this case, using -platformsdk switch of adt, while packaging your application might  just resolve your issue.(You will see some ld 4-byte alignment warnings, but thats ok)
    -Neha

  • Error 112: The AIR target doesn't support native extensions

    I have been developing an AIR app in Flash Builder.  I recently created an ANE (Air Native Extension) for FMOD and linked it with my AIR app.  ADT user-unfriendliness aside, I got it working.
    When I try to update my Ant build script to package the ANE files with my AIR project, ADT complains:
    My-App-Descriptor-Name.xml: error 112: The AIR target doesn't support native extensions.
    This comes as a surprise to me, because I've been compiling and developing the AIR app in Flash Builder with the ANE extensions.  It also doesn't make sense, because I packaged my ANE with platform specific libraries for multiple platforms (Windows and MacOs), so when the AIR app runs on these platforms, it should work.  However, this aside, my main point is:
    How the heck does this work in Flash Builder if AIR targets do not support ANE?  What is Flash Builder doing, exactly, when I Run or Debug an AIR app with ANEs?
    Thanks!
    JW

    hi I have the same issue while publishing my app app.xml: error 112: The AIR target doesn't support native extensions. plz help

  • Native Extensions fail in FlashCC Debugger

    I have a project using Native Extensions. While the project compiles and works fine on an Android device, when debugging I get a "Debugger failed to launch" error.
    Removing the native extension references solves the issue, so I assume it's that that causes the debugger crash.
    This is most regretable as the debugger opens a lot faster and provides better feedback than having to load the project up to a device.
    Is anyone working on this bug?

    Hi Peter,
    Could you please provide the exact steps and the OS details. I assume you are using "Debug-> Debug via USB" option to launch debugger on Android Device.
    Thanks and Regards,
    Meenakshi

Maybe you are looking for

  • Buying new iMac - Advices

    Hello, in a few days I'll buy a new iMac, I'm already a holder of an old 2010 iMac 21,5. I thought to remain on a 21,5 because for how expensive it can be, it is less than a 27, even if in this one there is the possibility to add RAM in future, would

  • Master Data Workflow Best Practice

    Hi, We are looking for guidance to build Workflow for Material Master and this is a complex workflow with more than 25 steps, parallel steps and custom role assignment. We are dealing with high volume of data in both design (more than 350 fields in a

  • Idoc status error 37 in sender and 51 in recieving system

    i m new to ale idoc n created 2 clients 910(sender system) and 800(reciever system) all connections are well i got status message 03 and 30 and 01 but along with it i m getting one more idoc genersted and status as 37 . idoc no. 50 as 03 30 and 01 an

  • How can I run other application?

    Hello everyone! I have few questions, for example I use this to run other application: Runtime.getRuntime().exec("C\\Program Files\\Opera\\Opera.exe");1. It works, but how can I run Opera.exe, when I don't know where was install Opera? 2. I want open

  • HT201317 Once I have loaded my photos on I cloud Can I delete them off my I Phone to fee up memory

    I am new to using Icloud, once I have down loaded my photos from my Iphone to Icloud can I delete them off my Iphone to free up memory