可可应用程序无法运行,因为Contents/MacOS/Application不是Unix可执行文件 [英] Cocoa application won't run because Contents/MacOS/Application is not a Unix Executable
问题描述
我的应用程序可以在我的系统以及其他几个系统上正常运行.
My application runs fine on my system, and also on several others.
但是,某些人无法运行该应用程序,因为/Contents/MacOS/ApplicationName中的文件不是Unix可执行文件.
However, some people can't run the application because the file in /Contents/MacOS/ApplicationName is not a Unix executable file.
在终端中输入以下行强制应用程序可执行,并解决了问题:
Inputting the following line in the terminal forces the application to be executable, and solves the problem:
chmod +x ApplicationName
很显然,这是解决问题的一种非常巧妙的方法,我不想告诉用户输入chmod来运行我的应用程序.我究竟做错了什么?为什么在某些系统上它显示为Unix可执行文件,而在其他系统上却没有?可能是权限问题...
Obviously this is a very hacky way around the problem, and I don't want to tell users to enter chmod to run my application. What am I doing wrong? Why is it appearing as a Unix executable file on some systems, but not others? It could be a permissions issue...
推荐答案
此刻,我通过保管箱将应用程序转移到客户端
at the moment, i transfer the app via dropbox to a client
Dropbox在OS X元数据和权限方面存在问题.首先存档应用程序(从Finder上下文菜单中),然后将zip文件放入Dropbox.
Dropbox has problems with OS X metadata and permissions. Archive the application first (from the Finder context menu) and put the zip file into Dropbox.
这篇关于可可应用程序无法运行,因为Contents/MacOS/Application不是Unix可执行文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!