【问题标题】:SFML crashes after compiling using Xcode 11 and macOS Catalina (zsh)使用 Xcode 11 和 macOS Catalina (zsh) 编译后 SFML 崩溃
【发布时间】:2020-03-18 14:35:21
【问题描述】:

我只是想在 Xcode 中运行示例 SFML 程序。我让它编译,但它没有运行。它立即崩溃并将其打印到控制台:

dyld: Library not loaded: @rpath/sfml-system.framework/Versions/2.5.1/sfml-system
  Referenced from: /Users/fabiosuarez/Library/Developer/Xcode/DerivedData/Minesweeper-akxearyxdvvgahfbqsxchcqyauxw/Build/Products/Debug/Minesweeper.app/Contents/MacOS/Minesweeper
  Reason: no suitable image found.  Did find:
    /Library/Frameworks/sfml-system.framework/Versions/2.5.1/sfml-system: code signature in (/Library/Frameworks/sfml-system.framework/Versions/2.5.1/sfml-system) not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.

环境:

  • IDE:Xcode 11.2.1
  • 操作系统:macOS Catalina 10.15.1
  • 外壳:zsh 5.7.1 (x86_64-apple-darwin19.0)

注意:这适用于我们必须制作 Minesweepeer 的项目,因此 Xcode 项目的名称是“Minesweeper”,但所有代码都是默认的 SFML 应用程序代码。

【问题讨论】:

    标签: c++ xcode macos sfml


    【解决方案1】:

    这里的“使用库验证”是重要线索。你需要disable that using the "Disable Library Validation" entitlement

    【讨论】:

    • 非常感谢!是的,这似乎是我的隐私设置的问题,我不得不一一接受所有框架,这很累,但我让它工作了。再次感谢!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-01-12
    • 2021-01-04
    • 1970-01-01
    • 2021-09-10
    • 2017-12-02
    相关资源
    最近更新 更多