创建空气本机扩展时出错 - 输出文件不可写
为了学习如何自己创建本机扩展,我查看了 Adobe 的示例和帮助文档。我实际上已经创建了扩展所需的文件(本机代码、扩展描述符、swc 库和library.swf)。但是,当我运行命令来构建 .ane 文件时,我收到此错误:
/Users/dalston/TeamAGC/sdk/4.6.0/bin/adt -package -target ane ../release/DeviceInfoExtension.ane 扩展.xml -swc DeviceInfoExtension.swc -平台 iPhone-ARM 库.swf libDeviceInfo.a
输出文件不可写
我还尝试了该命令的变体,它导致相同的错误(直接来自 Adobe 帮助文档):
/Users/dalston/TeamAGC/sdk/4.6.0/bin/adt -package -target ane ../release/DeviceInfoExtension.ane 扩展.xml -swc DeviceInfoExtension.swc -平台 iPhone-ARM -C 平台/ios 。 -platform默认-C平台/默认库.swf
输出文件不可写
我不确定我在这里做错了什么。以前有人遇到过这个问题吗?预先感谢您的帮助!
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.aoutput 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.swfoutput 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!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
遇到了完全相同的问题,“输出文件不可写”并找到了解决方案。
在您的情况下,将 更改
为
通常其放置 ANE 的路径会引发此错误,因此最安全的方法是运行 name.ane 而不使用任何相对路径指示符
Had the exact same problem, "output file is not writable" and found solution.
In your case, change the
to
Normally its the path where ANE is being placed that throws this error, so safest way is to run name.ane without any relative path indicators
我的猜测是文件夹 ../release/ 不存在。我也遇到了同样的错误,这只是指定不存在的输出文件夹的愚蠢错误。
My guess would be that the folder ../release/ doesn't exist. I had this same error and it was just a silly mistake of specifying a non-existent output folder.