AddInstanceForFactory & HALC_ShellDriverPlugIn errors when using SDL2 with Xcode?

笑着哭i 提交于 2020-04-14 07:38:12

问题


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.

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);

Giving these errors:

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.

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


回答1:


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.



来源:https://stackoverflow.com/questions/58983341/addinstanceforfactory-halc-shelldriverplugin-errors-when-using-sdl2-with-xcode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!