【问题标题】:Error Launching MacOS application built with Clang启动使用 Clang 构建的 MacOS 应用程序时出错
【发布时间】:2012-04-04 12:49:09
【问题描述】:

最近我用 Clang 编译器和地址清理器编译了一个应用程序,但该应用程序无法启动。我收到了这个错误:

LSOpenURLsWithRole() failed with error -10810

如果应用程序是用 clang(没有 asan)或 gcc 编译的,我可以运行应用程序

我在订单页面中找不到这个问题的线索。

有人知道会发生什么吗?

【问题讨论】:

  • 您找到解决方案了吗?

标签: macos clang


【解决方案1】:

这可能是权限问题,因此您应确保将应用的二进制文件设置为可执行文件。

即:

sudo chmod +x /Applications/foo.app/Contents/MacOS/foo

我从 this post that this might be a potential solution 看到,但另一方面 -10810 is a generic 'unknown' error code 所以它可能是别的东西。

希望这会有所帮助。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-05-26
    • 2021-07-03
    • 2020-10-28
    • 2019-05-01
    • 2012-04-22
    相关资源
    最近更新 更多