1、首先檢查開頭沒有漏寫#include <stdio.h>;
2、未安裝 Command Line Tools命令行工具,安裝步驟如下:
在終端中輸入 xcode-select --install,按提示安裝完成後,重啓終端即可。