gpt4 book ai didi

c++ - 尝试使用 OpenGL 设置 Xcode

转载 作者:行者123 更新时间:2023-12-04 15:27:43 35 4
gpt4 key购买 nike

我一直在尝试使用 OpenGL 设置 Xcode,但我无法让它工作。

我每次都遇到这个错误:

dyld: Library not loaded: /usr/local/opt/glfw/lib/libglfw.3.dylib
Referenced from: /Users/parisjackson-newman/Library/Developer/Xcode/DerivedData/GLFW_OpenGL-fjibdenxheioomgsseembfpbmeih/Build/Products/Debug/GLFW OpenGL
Reason: no suitable image found. Did find:
/usr/local/opt/glfw/lib/libglfw.3.dylib: code signature in (/usr/local/opt/glfw/lib/libglfw.3.dylib) 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.
/usr/local/lib/libglfw.3.dylib: code signature in (/usr/local/lib/libglfw.3.dylib) 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.
/usr/local/Cellar/glfw/3.3.2/lib/libglfw.3.3.dylib: code signature in (/usr/local/Cellar/glfw/3.3.2/lib/libglfw.3.3.dylib) 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.
(lldb)

我使用 home-brew 安装 glfw 和 glew。我正在运行的代码是 the standard window code from the glfw.org website

最佳答案

转到您的项目导航器并选择您的项目。

然后,转到签名和功能 选项卡下的强化运行时部分。

单击禁用库验证复选框。

一旦完成,您应该能够运行您的项目。

enter image description here

关于c++ - 尝试使用 OpenGL 设置 Xcode,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61925299/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com