Drawbacks of using ane with debuggable swc

Are there any drawbacks of using ane (air native extension) with debuggable swc in release build?
Can such extension impact performance in any way?
Adobe Scout keeps detecting my release build as debug (SWF Type: debug) if I include in it any extension with debuggable (-debug=true) swc.
Is it wrong warning?

I was trying to do the same thing, and thought I'd share even though this post is old.
1. Couldn't get dynamic framework working, went with static.
2. We put the static framework in the packagedDependencies tag just like the OP did.
3. We also had problems with assets, so we followed this: Adobe Flash Platform * Including resources in your native extension package
We put the assets in the iPhone-ARM directory in the ANE, and they do get copied to the root directory of the IPA.  We have been able to use storyboards, images, etc stored in the custom framework without problems.  Since assets from EVERY ANE get copied to the top level of the IPA, yes, we did have to change asset names to avoid conflicts.  Annoying but doable.
I'm probably missing some details of how we did it but I at least wanted to share that after much pain and Googling, we did get a custom framework in an ANE to work, even on iOS7.

Similar Messages

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

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

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

  • Using ANE in iOS Simulator for debugging

    Hello everyone,
    I’m developing on a MAC mini with Flash Builder 4.7 and AIR 3.4. I am working on an ANE and I like to debug it with the XCode simulator. To do that, I am using this template:
    https://github.com/divijkumar/xcode-template-ane/blob/master/AIR%20Native%20Extension/AIR% 20Native%20Extension%20for%20iOS.xctemplate/generateANE.sh)
    I tried to change the <extensions.xml> to refer to "iPhone-x86"  and creating the ANE by using ADT command like
    "$AIR_SDK_PATH"/bin/adt -package -target ane "$TARGET_NAME" extension.xml -swc "$EXTENSION_SWC_FILE_NAME" -platform default library.swf -platform iPhone-x86 -platformoptions platformoptions.xml "$NATIVE_EXTENSION_STATIC_LIB_NAME" library.swf
    Then in Flash Builder (with Debugger) I am trying to debug my application with the XCode Simulator with this command:
    adt.jar -package -target ipa-debug-interpreter-simulator -connect 192.168.1.54 -hideAneLibSymbols no -storetype pkcs12 -keystore ios_development.p12 Test1.ipa Test1-app.xml DebugHostInfo.xml Test1.css Test1.swf -extdir /Users/admin/Documents/Adobe Flash Builder 4.7/.metadata/.plugins/com.adobe.flexbuilder.project.ui/ANEFiles/Test1/com.adobe.flexide. multiplatform.ios.platform -platformsdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/S DKs/iPhoneSimulator6.0.sdk
    I always get Error:
    Error occurred while packaging the application:
    ld: warning: could not create compact unwind for __Unwind_Resume: non-standard register 0 being saved in prolog
    ld: warning: could not create compact unwind for __Unwind_ForcedUnwind: non-standard register 0 being saved in prolog
    ld: warning: could not create compact unwind for __Unwind_RaiseException: non-standard register 0 being saved in prolog
    ld: warning: could not create compact unwind for __Unwind_Resume_or_Rethrow: non-standard register 0 being saved in prolog
    My questions are:
    1. Is my ANE creation process above correct? Or do I have to use "iPhone-ARM" in the ADT Command for parameter "-platform"?
    2. Do I need to add i386 architecture to my build settings in XCode under "Valid Architectures" in order to debug it on my MAC mini with Xcode simulator?
    3. Is the Flash Builder debugging ADT command correct?
    4. And what about this linker problem described here: forums.adobe.com/message/4319610#4319610
    thx
    marco

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

  • Compilation of adobe air app that uses ANE fails while using the flex ant tasks.

    The resolution seems to be a hack - which when you rename .ane files to .swc, it works.
    I came across this workaround here: http://stackoverflow.com/questions/11112705/using-ant-mxmlc-task-with-native-extension?rq= 1
    <mxmlc file="${app.root}/app.as" 
                   output="${output.dir}/app.swf"
                   allow-source-path-overlap="true"
                   debug="false"
                   actionscript-file-encoding="UTF-8"
                   swf-version="19" >
                <load-config filename="${framework.root}/air-config.xml"/>
                <source-path path-element="${framework.root}"/>
                <source-path path-element="src"/>
                <source-path path-element="other"/>
                <compiler.library-path dir="libs" append="true">
                    <include name="**/*.swc"/>
                </compiler.library-path>
                <!-- THIS DOES NOT WORK -->
                <compiler.external-library-path dir="nativeExtension" append="true">
                    <include name="**/*.ane"/>
                </compiler.external-library-path>
            </mxmlc>
    However, if I rename all the .ane files in the nativeExtension directory to .swc the following change works..
                <!-- THIS WORKS -->
                <compiler.external-library-path dir="nativeExtension" append="true">
                    <include name="**/*.swc"/>
                </compiler.external-library-path>
    Has this issue been addressed?
    I'm using the following:
    - Adobe AIR SDK & Compiler (version 3.7) for Mac OS X
    - ActionScript Compiler 2.0
    - Apache Ant wrapper located in "AIRSDK_Compiler/ant/lib/flexTasks.jar"
    Let me know if any other details will be helpful.

    I'm using something like this in my build.xml (inapp.purchase.flash.swc is the flash wrapper for the ANE):
                <external-library-path dir="${basedir}/extensions/inapp.purchase/inapp.purchase.flash/bin" append="true">
                    <include name="inapp.purchase.flash.swc" />
                </external-library-path>
    I don't think you need ANE when building swf component of your app. ANE is only required for packaging. By linking with external inapp.purchase.flash.swc you're just telling action script compiler that above symbols will be defined later (in ANE).

  • Use of WDIslandLibrary30-debug.swc and sap-wd-flashDebug

    Hi
    I've had a look around the web and SDN in particular but cannot seem to find any concreate examples of using WDIslandLibrary30-debug.swc and the sap-wd-flashDebug parameter. The closest I got was this link below:
    [Debug - sap-wd-flashDebug=X ? |Re: Debug - sap-wd-flashDebug=X ?;
    Where Thomas Jung mentions refering to the documentation for the Adobe debugger. I assume he means the Adobe Flash Player 10.1 debug version?
    How would I debug using it? I am assuming that when calling the debug version of the flex app via the sap-wd-flashDebug parameter, that Flex builder or the debug version of Flash Player will be called if I add in some breakpoints?  Am I correct in my assumption? I do not get a popup as suggested, the flex app just runs as normal.
    Cheers
    Ian

    Hi Ian,
    From what I have been able to figure out, the parameter sap-wd-flashDebug only activates the WDA program to load up the embedded SWF file in debug mode, allowing a remote Flash/Flex debugger to connect to it. I do not think you can use ABAP workbench to debug what is happening inside the Flash island.
    You can use NWDS with the Flex plug in libraries or Adobe's Flex Builder (3 or Flash Builder 4) to start up a remote debugger session (when setting up a debugging config instead of running a debugger session from your local build you can put in your WDA application URL there). What it will do is load up Flexbuilder in debugging mode, call your WDA application through the ABAP WebAS then connects to your adobe flash island and you can put breakpoints into your flex/actionscript code and debug your flash island.
    I am not too sure what WDIslandLibrary30-debug.swc does but it might allow additional information to pass through to the flash island component? What I've been trying to find is how to view the WebDynpro -> Flash framework XML conversion so I can see how objects are being passed back and forth. I thought there was some way to print this out but could not find any documentation on how to enable it on the ABAP side.
    Hope it helps?
    Regards,
    Danny
    Edited by: Danny Yee on Oct 3, 2010 12:35 PM

  • How do I use WINSOCK with VB6 to communicat​e with a Fieldpoint FP-1600 module ?

    I have a Fieldpoint system connected via a FP-1600 ethernet module to our local network. I can use CWDataSocket with Visual Basic 6 (under WinNT 4) to communicate with the fieldpoint hardware via the fieldpoint explorer and OPC server. But if I try to read multiple channels from say an analog input module, only one reading is returned (i.e. a single float).
    It would appear that in order to read multiple channel simultaneously, I need to by-pass the OPC server and communicate directly with the FP-1600. The FP100x programmers manual explains what commands to use and what responses to expect etc. There are also exampls on the NI web site using the MSComm VB control to co
    mmunicate with fieldpoint RS232 comm modules. But can't find anything that specifies how to configure the WINSOCK conection in order to achieve communication with an FP-1600.
    If someone could post an example of a VB application that can do this, or explain how I should go about it, I would be very grateful.

    Ben,
    The FieldPoint OPC Server will publish only the first element of a multi-channel analog signal. What you should do is use multiple DataSocket connections (URL's), one to each channel to get all the data that you desire. There is no drawback to doing this method (other than needing to code additional connections using the same CWDS object). The information will not be any better or worse synchronized and all the data is independantly time-stamped.
    I would not recommend that you try to bypass the OPC Server. The FieldPoint Ethernet modules use a NI ethernet protocol that is proprietary so there is no information or examples on doing direct communcation using winsock.

  • Can two peeps use iChat with different accounts on the same computer?

    What do I do to REMOVE an old AIM account and replace it with a new account in IChat?
    Can two peeps use iChat with different accounts in the same computer?
    (Actually, two people share a laptop, but one of us cannot use her AIM account cuz mine is in iChat already... And, when traveling, I have the computer - and I would like to use iChat on the computer...)

    In iChat 4 you can have more than one AIM Valid name logged in at once.
    AIM valid = AIM, @mac.com or a MobileMe name.
    What you are then stuck with is that iChat is linked to one Buddy Picture and The one Mac User Account's Address Book which may or may not have Full Names, emails details, or a Nickname in iChat 4 linked to the Screen Names.
    Whilst it does let you both log in whilst using one Mac User Account there are drawbacks about who uses the keyboard and reading meesages from the other persons Buddies.
    8:50 PM Sunday; November 30, 2008

  • How to open epub file in iBooks using ANE(iOS) ?

    hello,
    I tried to open epub file in iBooks using Native Extensions.
    But, AIR app has crashed when calling ANE method (following: OpenEpub).
    Have problems with how to access the epub file?
    Or another problem?
    MacOS:10.6.8
    Xcode:4.2
    FlashBulder:4.6
    FlexSDK:4.6.0(default bundle version)
    TestDevice:1st iPad (OS 5.0.1)
    iOSNativeCode(this code works on native iOS app):
    #import <UIKit/UIKit.h>
    FREObject OpenEpub(FREContext ctx, void* funcData, uint32_t argc, FREObject argv[]){
        id delegate = [[UIApplication sharedApplication] delegate];
        UIWindow* window = [delegate window];
        UIButton* uiBtn = [[[UIButton alloc] init] retain];
        [window addSubview:uiBtn];
        NSString *fileToOpen = [[NSBundle mainBundle] pathForResource:@"test" ofType:@"epub"];
        NSURL *url = [NSURL fileURLWithPath:fileToOpen];
        UIDocumentInteractionController *docController = [UIDocumentInteractionController interactionControllerWithURL:url];
        [docController presentOpenInMenuFromRect:CGRectZero inView:uiBtn animated:true];
        [docController retain];
         const char *str = "Success";
         FREObject retStr;
         FRENewObjectFromUTF8(strlen(str)+1, (const uint8_t *)str, &retStr);
         return retStr;
    ANE packaging directory:
    ane/
         extension.xml
         key.p12
         platform/
              iOS/
                   iOSNativeCode.a
                   library.swf
                   test.epub
    extension.xml
    <extension xmlns="http://ns.adobe.com/air/extension/3.1">
    ~~~~
    Thanks!

    hi, i can open epub in iBooks using ANE !
        UIWindow *keyWindow= [[UIApplication sharedApplication] keyWindow];
        UIViewController *mainController = [keyWindow rootViewController];
        NSString *epubFileName= [[NSBundle mainBundle] pathForResource:@"test01" ofType:@"epub"];
        [epubFileName retain];
        NSURL *url = [NSURL fileURLWithPath:epubFileName];
        [url retain];
        UIDocumentInteractionController *docController = [UIDocumentInteractionController interactionControllerWithURL:url];
        [docController retain];
        CGRect rectDocC = CGRectMake(800, 0, 0, 0);
        [docController presentOptionsMenuFromRect:rectDocC inView:mainController.view animated:YES];
    thanks!

  • Using TLF with SDK 3.5 - 1014 error

    Hi
    I have followed the steps outlined at http://opensource.adobe.com/wiki/display/tlf/Using+TLF+with+Flex+3.2 to import TLF to user with SDK 3.5. I have verified that I have the latest swc. I get no compile erros but at runtime I get
    VerifyError: Error #1014: Class flashx.textLayout.elements::TextFlow could not be found
    Any help would be greatly appreciated.

    I have never use TLF with SDK 3.5.
    After reading what you have said, I guess you are setting SWCs in your project as "runtime shared Library", but there is not a RSL link( or not a correct RSL link) in the configuration file named flex-config.xml in SDK 3.5, to download the SWF or SWZ successfully in the runtime. You may solve the problem by setting libraries as "merge into code"

  • Use of a debugger while executing Windows Digital Rights Management (WMDRM) code is not permitted

    Hi:
       I have a Panasonic video camera that records in 1920x1080 60P format and writes an .m2ts type file.  I've written a filter that scales this to half size and allows me to draw on the video etc.  I would like to save that video. 
    When I attempt to develop my program using Visual Studio 2010 I get the message  "Use of a debugger while executing Windows Digital Rights Management (WMDRM) code is not permitted".  Also the program blows up with a memory access error.  
    Since this is my camera how is DRM  involved??   Is there a way to make such private videos not be involved in DRM?  Finally,  and how is one supposed to develop and debug this type of application if the debugger is not allowed
    to be used.
         Interestingly, if I run my application in non-debug mode it executes correctly.  However as I would like to make additions to the program etc.  not being able to use the debugger is extremely difficult.  Can someone
    shed light on this??
       Mags

    Hi:
       I have a Panasonic video camera that records in 1920x1080 60P format and writes an .m2ts type file.  I've written a filter that scales this to half size and allows me to draw on the video etc.  I would like to save that video. 
    When I attempt to develop my program using Visual Studio 2010 I get the message  "Use of a debugger while executing Windows Digital Rights Management (WMDRM) code is not permitted".  Also the program blows up with a memory access error.  
    Since this is my camera how is DRM  involved??   Is there a way to make such private videos not be involved in DRM?  Finally,  and how is one supposed to develop and debug this type of application if the debugger is not allowed
    to be used.
         Interestingly, if I run my application in non-debug mode it executes correctly.  However as I would like to make additions to the program etc.  not being able to use the debugger is extremely difficult.  Can someone
    shed light on this??
       Mags

  • Std::bad_alloc occurs only when using VS Graphics Debugger

    I'm using C# and SharpDX (a c# wrapper for directx) and I keep getting the following exception when using the Graphics Debugger in VS2012 and VS2013:
    First-chance exception at 0x7690c41f in Craft.exe: Microsoft C++ exception: std::bad_alloc at memory location 0x3276eda4.
    A first chance exception of type 'System.Runtime.InteropServices.SEHException' occurred in SharpDX.Direct3D11.dll
    An exception of type 'System.Runtime.InteropServices.SEHException' occurred in SharpDX.Direct3D11.dll but was not handled in user code
    Additional information: External component has thrown an exception.
    I have native code debugging enabled and I'm using the directx debug device.  The program runs fine normally, but when I use the graphics debugger, I get this exception almost all the time, usually pretty late in the loading phase.  When it happens,
    it highlights this line of code:
    newVertexBuffer = new Buffer(Engine.Device, VertexDataStream, (int)VertexDataStream.Length, ResourceUsage.Immutable, BindFlags.VertexBuffer, CpuAccessFlags.None, ResourceOptionFlags.None, 0);
    Like I said, this happens quite late into the loading phase, at which point this line of code has run hundreds of times successfully, and works just fine when not using the graphics debugger.  Is this a bug/issue with the VS debugger or something?

    Hi,
    Welcome to MSDN.
    The default memory allocation is the debugger heap, not the Debug CRT heap while running Visual Studio Debugger.
    It can be slow if we allocate/free a lot of memory, since it will cost lots of time on this special heap.
    You could refer to this
    thread and this
    link to get more information. There is a detailed description of debugger heap shared by “MSN” (his user name) in this
    link.
    In order to solve this issue, we could disable the debug heap as following steps:
    Control Panel->System Properties->Advanced System Settings->Environment Variables->System Variables.
    Add a new Variable called “_NO_DEBUG_HEAP” with a value of “1”.
    In addition, I suggest you post this issue in this forum below:
    http://xboxforums.create.msdn.com/forums/76.aspx
    like this thread “Visual Studio 2012 Graphics Debugger Issue”,
    since there are a lot of developers with more professional knowledge can help you.
    Thanks for your understanding.
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Using equalizer with reports server cluster

    Hello World!
    Just wonder if anybody using equalizer with Reports servers cluster, if yes what type?
    what is the cluster architecture?
    such as Machine A, B, C.... machine A has infra and mid , machine B has only infra, machine C has only mid...
    The problem we are having when the second member of a cluster is down the report server component complaints with somw internal error...
    TIA

    3. Connection factories target: admin server; JMS server target: admin          server
              > -> Potential drawback - The MDB has to maintain a queue connection with a
              server
              > that is not part of the cluster. (Again, please correct me if I'm wrong.)
              I'm
              > not sure if this introduces extra time taken for the MDB to receive its
              messages
              > and for it to send the processed messages to the queue.
              Admin server is not supposed to participate in the cluster. I wouldn't
              deploy anything on the admin server.
              I think my personal preferene would be connection factories to the cluster
              and use distributed destinations.
              Regards...
              

  • Do you plan on supporting 64-bit Mac desktop applications and ANEs with the captive runtime?

    I was wondering if Adobe plans to support 64-bit Mac desktop applications and ANEs with the AIR runtime using captive setup?

    On 01/11/2011 16:39, Simon Flood wrote:
    > So I have an iMac (4,1) running Snow Leopard.
    >
    > I tried installing the 32-bit Mac agent and it complained
    >
    > Package intended for 32 bit architecture
    > Exiting with error code 237.
    >
    > so I installed the 64-bit agent - it was happy.
    >
    > I then logged out and back in to activate the agent but it isn't happy -
    > I get a ZENworks Adaptive Agent dialog popup with the error "Cannot load
    > 64-bit SWT libraries on 32-bit JVM".
    >
    > $ java -version
    > java version "1.6.0_26"
    > Java(TM) SE Runtime Environment (build 1.6.0_26-b03-384-10M3425)
    > Java HotSpot(TM) Client VM (build 20.1-b02-384, mixed mode)
    > $ uname -a
    > Darwin <host>.<domain> 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7
    > 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386
    >
    > System Software Overview in System Profiler has No recorded against
    > 64-bit Kernel and Extensions.
    >
    > So yes Java is 32-bit but so is Mac OS X.
    >
    > Q1) How can I uninstall the (64-bit) Mac agent?
    >
    > Q2) Should I be installing the 32- or 64-bit Mac agent?
    >
    > I'm thinking I should be installing the 32-bit Mac agent so
    >
    > Q3) How can I install the 32-bit Mac agent?
    For anyone following this thread I've now logged bug #728888.
    Simon
    Novell Knowledge Partner (NKP)
    Do you work with Novell technologies at a university, college or school?
    If so, your campus could benefit from joining the Novell Technology
    Transfer Partner (TTP) program. See novell.com/ttp for more details.

  • Any issues using ALCS with Flex 4?

    We're about to move some of our code base to Flex 4, and I wanted to check in advance if there would be any issues with ALCS using Flex 4 Beta 2 and Flash Builder Beta 2.
    Thanks,
    Rick

    Hi,
    If you are using player 10 ALCS swc and Whiteboard with Flex 4 and Flash Builder beta 2, it might throw an exception sometimes which has been fixed recently and will be updated in the next drop.
    Player 9 ALCS swc should work fine. We haven't done testing extensively on Flex 4 for our framework, so if there are any issues that you come across, please report to us.
    Thanks
    Hironmay Basu

  • Use cookies with sessionManagement?

    I'm trying to create cookies that I can pass to subsequent
    webpages - all of my webpages are controlled by an Application.cfm
    file with sessionManagement turned on (enabling session variables).
    When a user logs in, I create a cookie for his org name (i.e.
    <cfcookie name="orgname" value="#org_name#"
    domain=".sprint.com">. With the debugger on, I can see the
    cookie set on the login page. However, when I go to another page,
    the debugger no longer shows the cookie. I only see CFID and
    CFTOKEN.
    Are we not allowed to use cookies with session
    management?

    Are we not allowed to use cookies with session management?
    Sure you are. What version of CF. There was some cookie
    issues with
    older, pre 5.0, versions of ColdFusion.
    Are you doing anything on the subsequent pages with the
    cookie? I'm not
    sure a cookie would show up in debugger on any page if you
    are not
    writing or reading it on that given page.

Maybe you are looking for