将SDL2与Xcode一起使用时,AddInstanceForFactory和HALC_ShellDriverPlugIn错误?

我正在尝试在Xcode 11.2.1上使用SDL2和C ++制作一个简单的游戏;但是,我的进度已因错误而停止。

遇到这些错误所要做的只是简单地初始化SDL。仅调用此函数将导致程序崩溃:

SDL_Init(SDL_INIT_EVERYTHING);

给出这些错误:

Westerino[16795:847932] Metal API Validation Enabled
Westerino[16795:848288] flock failed to lock maps file: errno = 35
Westerino[16795:848288] flock failed to lock maps file: errno = 35
Westerino[16795:847932] [plugin] AddInstanceForFactory: No factory registered for id <CFUUID 0x102157f00> F8BB1C28-BAE8-11D6-9C31-00039315CD46
Westerino[16795:847932]  HALC_ShellDriverPlugIn::Open: Can't get a pointer to the Open routine
Westerino[16795:847932]  HALC_ShellDriverPlugIn::Open: Can't get a pointer to the Open routine

我尝试过clearing the cache,清理构建,删除首选项,重新安装框架等,但是没有任何帮助。

当我更新Xcode时,这些问题似乎已经开始,但我无法确认。

linlf06 回答:将SDL2与Xcode一起使用时,AddInstanceForFactory和HALC_ShellDriverPlugIn错误?

同一问题。我也在使用Catalina 10.15.1和XCode 11.2.1。虽然,我设法在VSCode中使用CodeLLDB进行了构建和调试。另外,关闭“ C ++:抛出”断点有助于无中断地运行程序。

本文链接:https://www.f2er.com/3054950.html

大家都在问