Skip to main content
BlueHat
Participant
March 7, 2016
Question

adt error - is not part of a Mac OS X Native Extensions framework

  • March 7, 2016
  • 1 reply
  • 625 views

I'm trying to package some code up as an ANE, something we've done before in house. However we're currently stuck on an ADT error which I can't seem to wrap my head around.

When running the following from a sh file, I'm getting an error.

Shell script:

ADT="/Applications/air/bin/adt"

NAME="VideoRoll"

AFILE="libVideoRollANE.a"

$ADT -package -target ane $NAME.ane extension.xml -swc $NAME.swc -platform iPhone-ARM -platformoptions platformoptions.xml library.swf $AFILE

Error:

platformoptions.xml is not part of a Mac OS X Native Extensions framework

All of the files are in the correct place and being clearly picked up by adt, as I'd assume there would be something else I'd be getting back. If you're after the source code, it's an open source library on bitbucket that I've forked and made a couple of changes to. I'm trying to compile it with Adobe AIR SDK 20 to try and fix an issue we're getting but I'm struggling to just build it from the base source right now. The source can be found here: https://bitbucket.org/lostirc/videoroll/src .


Any suggestions would be great, I'm up for trying anything now. I've modified nearly everything I can think of and tried various different orders for the command, it seems if I remove the platformoptions flag and value, then it gives the same error about library.swf, so I'm not sure it's directly related to the platformoptions.xml.

This topic has been closed for replies.

1 reply

BlueHat
BlueHatAuthor
Participant
March 7, 2016

So I solved the error by running the same command on Windows which is okay but potentially shows an issue with the ADT on OS X in AIR 20?

I'm now getting a new error when putting the ANE into my as3 project and building an IPA:

Compilation failed while executing : ld64

Any suggestions on this would be great.

Inspiring
July 11, 2016

Not sure if you found the answer or not, but I have seen this type of error when the swc library has a mismatch namespace swf version - they should all be consistent.

As an aside, it looks like you were working with the videoroll ane for ios - where you ever able to get the 64bit video roll working on ios?