创建空气本机扩展时出错 - 输出文件不可写

发布于 2024-12-19 17:58:22 字数 694 浏览 0 评论 0原文

为了学习如何自己创建本机扩展,我查看了 Adob​​e 的示例和帮助文档。我实际上已经创建了扩展所需的文件(本机代码、扩展描述符、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

输出文件不可写

我还尝试了该命令的变体,它导致相同的错误(直接来自 Adob​​e 帮助文档):

/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.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!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

凌乱心跳 2024-12-26 17:58:22

遇到了完全相同的问题,“输出文件不可写”并找到了解决方案。

在您的情况下,将 更改

..release/DeviceInfoExtension.ane

DeviceInfoExtension.ane

通常其放置 ANE 的路径会引发此错误,因此最安全的方法是运行 name.ane 而不使用任何相对路径指示符

Had the exact same problem, "output file is not writable" and found solution.

In your case, change the

..release/DeviceInfoExtension.ane

to

DeviceInfoExtension.ane

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

天煞孤星 2024-12-26 17:58:22

我的猜测是文件夹 ../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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文