Skip to main content
Participant
November 1, 2013
Question

Adobe Native Extensions Xcode 5?

  • November 1, 2013
  • 2 replies
  • 1314 views

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!

This topic has been closed for replies.

2 replies

Participant
February 13, 2014

I'm pretty sure Native extenions has been discontinued.

It looks like all development has stopped at adobe.

Adobe air and the remaining flash platform will probably follow suit.

User Unknow
Legend
February 13, 2014

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.

Participant
November 1, 2013

For completion. When I do use the .ANE directly in the import I get the error saying:

"ArgumentError: Error #3500: The extension context does not have a method with the name init."

Maybe that helps?