我最近升级了我的Xcode命令行工具,现在我在编译升级前编译的内容时出现错误。
tools/px.c:7:10: fatal error: 'unistd.h' file not found
#include <unistd.h>
^~~~~~~~~~
在此升级之前,每当我安装新版本的 Xcode 时,我都必须安装命令行工具以及
/Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg
最新升级后,该文件和包含该文件的目录将不再存在。
我能够在另一台尚未升级的计算机上找到该软件包。然而,这个问题仍未解决。