Cocoa application won't run because Contents/MacOS/Application is not a Unix Executable

走远了吗. 提交于 2019-12-13 02:27:51

问题


My application runs fine on my system, and also on several others.

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

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


回答1:


at the moment, i transfer the app via dropbox to a client

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.



来源:https://stackoverflow.com/questions/8830479/cocoa-application-wont-run-because-contents-macos-application-is-not-a-unix-exe

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!