codeblocks for Mac编译出现问题提示GUN GCC什么的,小白一个,希望大佬指教!

-------------- Build: Debug in 1 (compiler: GNU GCC Compiler)---------------

gcc -Wall -g -c /Users/jackwang/Documents/codeblocks/1/main.c -o obj/Debug/main.o
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Process terminated with status 1 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))

提示信息如上。

可能是由于xcode问题造成的,可在终端中执行如下命令:
xcode-select --install
系统弹出下载xcode相关插件,大概1分钟安装完毕