c-Macos Ventura,#error SDL for Mac OS X仅支持在10.7及以上版本上部署



我刚刚更新到Macos Ventura,但当我试图编译我的项目时,我收到了以下错误消息。以下是错误消息的输出之一:

In file included from /opt/homebrew/include/SDL2/SDL_config.h:33,
from /opt/homebrew/include/SDL2/SDL_stdinc.h:31,
from /opt/homebrew/include/SDL2/SDL_main.h:25,
from /opt/homebrew/include/SDL2/SDL.h:32,
from ../include/gfc_audio.h:4,
from gfc_audio.c:4:
/opt/homebrew/include/SDL2/SDL_platform.h:112:3: error: #error SDL for Mac OS X only supports deploying on 10.7 and above.
112 | # error SDL for Mac OS X only supports deploying on 10.7 and above.
|   ^~~~~

此外,我正在使用自制程序中的gcc-12,如果有帮助的话,我会重新安装gcc和sdl。

所以经过一些研究,根据这个github问题,XCode 14.1还没有发布,仍然处于发布候选状态。XCode 14.1发布后,它应该可以正常工作。

最新更新