error: can't exec '/usr/bin/make' (No such file or directory)
编译一个示例代码时,Xcode报这个错误:
error: can't exec '/usr/bin/make' (No such file or directory)
原因:Xcode没有安装Command Line Tools
解决方法:打开Xcode - Preferences - Downloads - Components,安装列表中的Command Line Tools即可,见下图: