我在Windows 2.6和Mac Os平台的AIR 2.6中有一个程序。使用NativeProcess类来执行我已包含在项目中的原生应用程序。错误#3219 AIR中的NativeProcess
在Windows中一切正常,但在Mac不工作。
的代码是:
var executable:File = File.applicationDirectory.resolvePath('bin/mac/convert')
var nativeProcessStartupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();
nativeProcessStartupInfo.executable = executable;
nativeProcessStartupInfo.arguments = params;
nativeProcessStartupInfo.workingDirectory = workingDirectory;
if(NativeProcess.isSupported)
start(nativeProcessStartupInfo);
该错误是在开始(...)线:
Error #3219: The NativeProcess could not be started. 'launch path not accesible'.
可执行var为与在调试路径的File = /用户/觉醒/文件/ workspace/flashbuilder/SDTDV/bin-debug/bin/mac/convert
它表示exists = True。与发布版本相同的问题。
非常感谢您。
您是否在所有行上设置了执行位? – 2015-11-05 02:56:40
其他行只适用于多用户系统(例如Unix/Linux服务器)。假设你是系统上开发应用程序的唯一用户,在'Owner'上设置它就是真正需要的。 – 2015-11-05 21:30:33