使用 Xcode 11 和 macOS Catalina (zsh) 编译后 SFML 崩溃
SFML crashes after compiling using Xcode 11 and macOS Catalina (zsh)
我只是想 运行 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
- OS: macOS Catalina 10.15.1
- Shell: zsh 5.7.1 (x86_64-apple-darwin19.0)
注意:这是一个我们必须制作扫雷的项目,因此 Xcode 项目的名称是 'Minesweeper' 但所有代码都是默认的 SFML 应用程序代码。
这里的"using Library Validation"是关键线索。你需要 disable that using the "Disable Library Validation" entitlement
我只是想 运行 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
- OS: macOS Catalina 10.15.1
- Shell: zsh 5.7.1 (x86_64-apple-darwin19.0)
注意:这是一个我们必须制作扫雷的项目,因此 Xcode 项目的名称是 'Minesweeper' 但所有代码都是默认的 SFML 应用程序代码。
这里的"using Library Validation"是关键线索。你需要 disable that using the "Disable Library Validation" entitlement