本文介绍了AddInstanceForFactory&将SDL2与Xcode一起使用时出现HALC_ShellDriverPlugIn错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I am trying to make a simple game using SDL2 and C++ on Xcode 11.2.1; however, my progress has been stopped by an error.

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

All it takes to encounter these errors is simply initializing SDL. Just calling this function will cause the program to crash:

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

我已尝试清除缓存,清理构建,删除首选项,重新安装框架等,但仍无济于事.

I have tried clearing the cache, cleaning the build, deleting the preferences, reinstalling the framework, etc. but nothing has helped yet.

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

It seems like these issues may have started when I updated Xcode, but I cannot confirm that.

推荐答案

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

The same issue here. I am also using Catalina 10.15.1 and XCode 11.2.1. Although, I managed to build and debug using CodeLLDB in VSCode. Also, turning off "C++: on throw" breakpoints helps to run the program without any pauses.

这篇关于AddInstanceForFactory&amp;将SDL2与Xcode一起使用时出现HALC_ShellDriverPlugIn错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-23 08:51