[英]SFML headers not found when compiling using CMake and GCC (MacOS Sierra)
[英]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
- 操作系統:macOS Catalina 10.15.1
- Shell:zsh 5.7.1 (x86_64-apple-darwin19.0)
注意:這是一個我們必須制作 Minesweepeer 的項目,因此 Xcode 項目的名稱是“Minesweeper”,但所有代碼都是默認的 SFML 應用程序代碼。
這里的“使用庫驗證”是重要線索。 您需要使用“禁用庫驗證”權利來禁用它
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.