# 先看看自己的目录名字
ls /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/
#我的输出是 MacOSX10.11.sdk
#执行下面命令,把 XXX 换成刚刚输出 MacOSX10.11.sdk
ln -s /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/XXX/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers/X11 /usr/local/include/X11
网友评论