Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个使用第一个参数“/Library/Application Support/myapp/myapp.app”调用 execvp() 的 cpp 文件
它不起作用,我也尝试在空格前添加“\”。
我怎样才能使这项工作?
谢谢
那是一个目录(应用程序包),而不是可执行文件。您必须启动实际的可执行文件(通常在Contents/MacOS包的目录中)或open使用应用程序的路径执行。
Contents/MacOS
open