Skip to main content
Participant
December 4, 2011
Answered

Problem creating native extension package

  • December 4, 2011
  • 2 replies
  • 2165 views

In an effort to learn how to create a native extension on my own, I've looked to the examples and help documentation from Adobe. I have actually created the required files for the extension (the native code, extension descriptor, the swc library and library.swf). However, when I run the command to build the .ane file I get this error:

/Users/dalston/TeamAGC/sdk/4.6.0/bin/adt -package -target ane ../release/DeviceInfoExtension.ane extension.xml -swc DeviceInfoExtension.swc -platform iPhone-ARM library.swf libDeviceInfo.a

output file is not writable

I also tried a variation of that command that results in the same error (which comes straight from the Adobe help docs):

/Users/dalston/TeamAGC/sdk/4.6.0/bin/adt -package -target ane ../release/DeviceInfoExtension.ane extension.xml -swc DeviceInfoExtension.swc -platform iPhone-ARM -C platform/ios . -platform default -C platform/default library.swf

output file is not writable

I'm not sure what I'm doing wrong here. Has anyone had this problem before? Thanks in advance for your help!

This topic has been closed for replies.
Correct answer mmah-umd

I'm coming to this thread very late, but I would change ../release/DeviceInfoExtension.ane to just DeviceInfoExtension.ane

2 replies

mmah-umdCorrect answer
Inspiring
February 27, 2012

I'm coming to this thread very late, but I would change ../release/DeviceInfoExtension.ane to just DeviceInfoExtension.ane

Colin Holgate
Inspiring
December 4, 2011

What folder were you in at the time you tried the command line? Like, if you just type:

ls

which folder's contents do you see, and do you have write access to that folder?

dalston08Author
Participant
December 5, 2011

Hello Colin,

The folder I was working from /Users/dalston/TeamAGC/sdk/4.6.0, which is where the AIR sdk resides. The actual directory with the native extension files are in /Users/dalston/Documents/Adobe Flash Builder 4.6/DeviceInfoExtension/bin/DeviceInfoExtension. When I run the ls command I see all the folders under the main user (dalston, which is me). I believe I have read/write access to everything since I am the adminsitrator on this machine. I am on a Mac by the way.

Colin Holgate
Inspiring
December 5, 2011

I was just thinking that if you did a cd to somewhere certain to work before you run the line, like:

cd ~/Documents

it might make a difference.