IOS only extension

I am developing an app that is targetted for iOS and Android. On iOS I need to make use of an exension that is only supported on iOS. If I include the exension in my Flash Builder project, I can no longer deploy to the simulator. I receive an error like "The content cannot be loaded because there was a problem loading an extension: Error: Requested extension XXX is not supported for MacOS-x86." Do I need to create a stub extension for MacOS-x86 or is there a simpler way?

Going by the error you have mentioned. You are trying on AIR Simulator. (I think with the current release you can deploy your AIR iOS Apps on iOS Simulator as well. You get iOS Simulator in Xcode too set.) So provided you can deploy your app on AIR Mobile Simulator (Target MacOS-x86) and iPhone Simulator (iPhone-x86). What I would recommend is that you create a stub extension for default platform i.e. any platform which has no specific implementation.
See this extension as an example http://code.google.com/p/in-app-purchase-air-ios/source/browse/branches/v1/AS/src/extensio n.xml (Which has specific implementations for iOS and Android but has default stub for any other platform.)
And as an example of ANE AS Implementation see http://code.google.com/p/in-app-purchase-air-ios/source/browse/branches/v1/AS/src/com/adob e/nativeExtensions/AppPurchase.as here I have used Flex Conditional compilation. Basically, when I compile with device = false. I dont make any calls to native implementation. making it a stub.
See this for help on packaging ane with multiple platforms http://help.adobe.com/en_US/air/extensions/WSf268776665d7970d-2482335412ffea65006-8000.htm l . Please post back if you have any issues.
Hope this helps.
sbhave

Similar Messages

  • 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

  • Some iOS Native extensions that can be useful

    Hi,
    I have made some iOS Native extensions that can be useful.
    You can find it at https://github.com/xperiments?tab=repositories
    ANE7z
    => Adobe AIR iOS Native Extension to decompres 7z files.
    ANEZipFile
    => Adobe AIR iOS Native Extension to zip/unzip files.
    ANEFileSyncInterface
    => A micro http server with FileManagement capabilities Native Extension
    IOSSystemUtils
    => Adobe Air IOS Native Extension to control Brightness / Torch / Badge
    ANEUnRar
    => Adobe Air Native Extension to Obj-C UnRar Lib
    Please give me your comments

    First of all, thank you for creating this extension. However, it doesn't seem to work. Below is my code for decompressing ByteArray (error handling is stripped for simplicity):
                        public function decompress(aData:ByteArray):ByteArray {
                                  // Save data to file
                                  var fileInput:File = File.applicationStorageDirectory.resolvePath("input.7z");
                                  var stream:FileStream = new FileStream();
                                  stream.open(fileInput, FileMode.WRITE);
                                  stream.writeBytes(aData);
                                  stream.close();
                                  var folderOutput:File = File.applicationStorageDirectory.resolvePath("output");
                                  ANE7z.decompress(fileInput, folderOutput);
                                  var files:Array = folderOutput.getDirectoryListing();
                                  for each (var fileOutput:File in files) {
                                            trace("Extracted file: " + fileOutput.nativePath);
                                            if (!fileOutput.isDirectory) {
                                                      var bytes:ByteArray = new ByteArray();
                                                      stream = new FileStream();
                                                      stream.open(fileOutput, FileMode.READ);
                                                      stream.readBytes(bytes);
                                                      stream.close();
                                                      bytes.position = 0;
                                                      return bytes;
                                  return null;
    The problem is folderOutput.getDirectoryListing() always returns an empty array.

  • Are there a Windows Phone version of Lightroom Mobile coming soon or Lightroom mobile will be android and iOS only?

    Hi:
    Are there a Windows Phone version of Lightroom Mobile coming soon or Lightroom mobile will be android and iOS only?
    Best regards.
    Miguel

    Anyone?

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

  • Is iMessage limited to iOS only?

    Is iMessage limited to iOS only? Any way to send a text message through internet on iPad/

    iMessage allows you to send unlimited text, photos, videos, locations, and contacts using Wi-Fi or 3G* from your iPhone, iPad, or iPod touch to other iOS 5 users.

  • Can iOS only handle two seperate last names (QR-Code-Scan; vCard)

    Hello,
    I'm having trouble scanning a QR-Code (vCard) from a business card. If the last name consists of three names iOS only displays two of the names. Example: Max van den Test (contacts app Max den Test).
    I've already tried lots of QR-Code scanners from the App Store and tools to generate QR-Codes (vCard). It seems to be a problem with iOS. Android and Windows Phone display more than two last names just fine. I hope someone can help.
    Best regards

    MatejLach wrote:
    clamd is running, user and group clamav all have the relevant permissions as far as I can tell, however upon scanning my mail, I always end up with the following error:
    Scanning error:
    /home/username/.claws-mail/mimetmp/0000000e.mimetmp: lstat() failed: Permission denied. ERROR
    Seems like a permissions error to me... maybe check the actual file it is attempting to scan... I know it is in your home folder, but just to be sure, you might want to check that everything is sane.

  • Duplicate symbol in iOS native extension

    I'm trying to add an Objective C class to an existing native extension that I have for iOS. The code builds fine in Xcode, and the ANE process still seems to work fine. But when I try to package the application for debugging on my iPhone I get this error:
    Error occurred while packaging the application:
    ld: duplicate symbol _OBJC_METACLASS_$_EmailViewDelegate in C:\Users\jmiller\AppData\Local\Temp\18faba99-de69-437b-8fed-c983e5ce2882/libTspNativeExt. a(EmailViewDelegate.o) and C:\Users\jmiller\AppData\Local\Temp\18faba99-de69-437b-8fed-c983e5ce2882/libnet.theservic epro.a(EmailViewDelegate.o) for architecture armv7
    Compilation failed while executing : ld64
    EmailViewDelegate is the name of the class I'm trying to add. libTspNativeExt.a is the library I'm building in Xcode. I have no idea where libnet.theservicepro.a is coming from but it is based on the id from my extension.xml (which is net.theservicepro). I've inspected the ANE with WinRAR and although I see my libTspNativeExt.a in the iOS folder, I do not see this other library anywhere.
    The only fix I'm seeing is to use hideAneLibSymbols=yes in the launch parameters. However, when I do that I get this error while packaging:
    Error occurred while packaging the application:
    Compilation failed while executing : ld64
    Most people are running into this problem with two native extensions that actually conflict. But something in my flow seems to be duplicating the code within my single ANE. Any suggestions?

    And all it took was typing out the question for the answer to hit me. I'm going to share it here incase anyone else runs into this same problem.
    The problem was in my platform_options.xml file for iOS. The previous coder had set it up like this:
    <packagedDependencies>
        <packagedDependency>libTspNativeExt.a</packagedDependency>
        <packagedDependency>BMSPrinterKit_US.framework</packagedDependency>
    </packagedDependencies>
    So behind the scenes, ADT is putting all these dependancies into a libextensionid.a library which means we were telling it to import our library a second time. I'm amazed it actually worked before!

  • I have IOS Version 10.6.8 and want to download pages, but it will only allow 10.9 ios only, is there anyway to get the older verson of pages downloaded? I hope someone can help me, as I am needed a program that allows Greek and Hebrew languages for docs.

    I was told by a friend that pages would help me do greek and hebrew documents if needed. I went to download, but the requirement is 10.9 IOS. Thats only on the new macbooks. Can anyone recomment another product to do these docs, or do I just have to wait on the 10.9 IOS to be released?

    Thanks...here it was mine says...
    Hardware Overview:
      Model Name:          MacBook
      Model Identifier:          MacBook7,1
      Processor Name:          Intel Core 2 Duo
      Processor Speed:          2.4 GHz
      Number Of Processors:          1
      Total Number Of Cores:          2
      L2 Cache:          3 MB
      Memory:          2 GB
      Bus Speed:          1.07 GHz
      Boot ROM Version:          MB71.0039.B09
      SMC Version (system):          1.60f6
      Serial Number (system):          W80337U2F5W
      Hardware UUID:          BEB7FA07-9857-5F9D-B2FD-764A1DA74BFA
      Sudden Motion Sensor:
      State:          Enabled

  • Will there be  iOS 8 Extension for Adobe Reader application in the upcoming version

    Will Adobe reader iOS app  provide extension which would allow to edit the pdf.So that we do not need to copy the file into the reader, instead we would use extension to edit the file.

    Thank you for your feedback. I cannot speculate on future releases, but we will take your feedback into consideration.

  • IOS native extension for networkinfo throws an error

    Hello,
    I'm trying to check wether the active connection on a device is Wifi or mobile data connection. On android this works fine but on iOS there is a problem.
    A native extension exists for this see here. 
    The problem is that the line below throws an error: 'Error #1009: Cannot access a property or method of a null object reference.'
    var interfaces:Vector.<com.adobe.nativeExtensions.Networkinfo.NetworkInterface> = com.adobe.nativeExtensions.Networkinfo.NetworkInfo.networkInfo.findInterfaces();
    I'm using AIR3.1 (no idea if this works on 3.0).
    Anybody a solution?

    Ever solve this? I'm also getting errors...
    Specifically:
    ArgumentError: Error #3500: The extension context does not have a method with the name getInterfaces.

  • Adobe CC Desktop download only Extension Manager version 7.0.0.347

    Hi, I used the Adobe CC Desktop to download Extension Manager, but it only downloads the version 7.0.0.347. I don't know if that is the real problem, but I can't install any extension and the list of softwares only shows "Others". Any help?

    I had the latest desktop app intalled, but I found out what happenned. My license is for business and was installed through the packager. So the update server wasn't up-to-date. I updated it and all the computers are now up-to-date.
    Anyway, thanks for the help!

  • IOS 8 extensions feature for Air iOS apps?

    Hi,
    Since iOS 8 it's possible to add extensions to iOS apps. (App Extensions - Apple Developer)
    Will that feature come to Adobe Air?
    Thanks

    Hi,
    I'm really interested in this feature as well. Have spent a bit of time attempting to get one running through a native extension but it doesn't appear to work. I believe something in the AIR build process is blocking the components required. I've tried several methods so far:
    packaging the appex with an ANE
    packaging the appex with the AIR container app
    using a class instead of a storyboard
    But nothing seems to be working. This is even before the app extension is doing anything. My guess is that the plist file specifying the app extension isn't correctly being included in the application but I have no idea how to update it to test.

  • Flash Pro CS6 iOS Native Extension Problem

    I am trying out flash pro CS6 new features.
    The most important one being ANEs [native extensions].
    in flash builder 4.6, when using an ANE for ios, it is sometimes required to put the ios5 SDK location [ -platformsdk  in ADT].
    This is completely missing in Flash Pro CS6 IDE, any way around that?
    [for the info on including the ios5 sdk check:
    http://help.adobe.com/en_US/flex/mobileapps/WSe4e4b720da9dedb5-4aefe03513238d8a1b8-8000.ht ml]
    Thanks.

    Uhmm, i'm doing a kind-of-360º-panorama-app and we need Gyroscope and Ad-hoc / AppStore distribution. And i've tried to get an answer of any kind from guys on Adobe on their AIR facebook fan page and here.
    SHould we write our own gyroscope ANE?, have any of you succesfully compiled ad-hoc or app-store with Ketzler Euler Gyroscope ANE?
    http://www.ketzler.de/2011/11/adobe-air-gyroscope-native-extension-with-euler-angles-roll- pitch-yaw-for-ios/
    regards.

  • AIR3 (iOS) - Native Extension (objectiveC) - control Acrobat PDF API

    In my iPad app, I want to load in a PDF and then get control of the Acrobat API to allow the user to interact with the PDF as they see fit.
    Is this possible?
    I am making the assumption that there is currently objectiveC code available to use the Acrobat API on the iOS. Can anyone verify?
    I am also making the assumption that through Native Extension I can bridge to this objevtiveC code from AS3 on the iOS. Can anyone please verify?
    Thanks...

    Yes. The ability to word search and jump to a specific page.
    Bringing up a PDF in iOS browser or through StageWebView you cannot perform these actions.
    I've seen iPad apps that can word search and page jump. I'm assuming this is being done with ObjectiveC.
    I'm looking for someone to confirm this is the case.
    Because if so I'm hoping we can then code a Native Extension utilizing this ObjectiveC code and thus control the PDF the way we want.

Maybe you are looking for