ios - XCode 13 构建失败 - XCode 12 工作正常 - 无法构建模块“Darwin”
问题描述
我在使用 XCode 13 构建项目时遇到问题(与 XCode 13.1 和 13.2(测试版)相同的错误消息)。XCode 12.5.1仍然可以正常工作。
删除“derivedData”文件夹不会改变错误。我的项目正在与 CMake 生成的另一个 XCode 工作区进行交叉编译。我怀疑这与问题的根本原因有关,因为错误发生在交叉编译之后。该项目使用 Swift 和一些遗留的 Objective-C 代码。失败发生在Compile Swift source files (arm64)
->Precompile bridging header (arm64)
以下是错误消息的摘录:
<module-includes>:392:9: note: in file included from <module-includes>:392:
#import "netinet6/ipsec.h"
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.0.sdk/usr/include/netinet6/ipsec.h:132:2: error: unknown type name 'uuid_string_t'; did you mean 'io_string_t'?
uuid_string_t wake_uuid;
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS15.0.sdk/usr/include/device/device_types.h:89:33: note: 'io_string_t' declared here
typedef char io_string_t[512];
你有什么想法我做错了什么或者我应该尝试什么来构建 XCode 13? 感谢您的每一条评论。我急于解决这个问题。
有关错误消息的详细信息:
- 这是 XCode 13 中显示的错误消息的屏幕截图
- 完整的错误日志:
关于我的环境的详细信息:
- 我正在使用 Mac Mini M1
- 错误与带有英特尔的 Mac Mini 相同
- 操作系统 11.6
- 升级到 Mac OS 12 没有帮助
- 输出
brew doctor
:Your system is ready to brew.
- 选定的命令行工具:
- Xcode 13.1
- 截屏
解决方案
推荐阅读
- java - 如果我在嵌入式 tomcat 上运行我的 Rest API 并且 IDE 已关闭,它从哪里运行?
- laravel - Laravel-echo-server 码头化问题
- azure-api-management - 如何在不使用 API Gateway 上的测试控制台的情况下跟踪 Api 代理请求?
- php - 如何将 wordpress 从 xampp windows 迁移到 ubuntu
- python - 使用正则表达式检索字符串的子集 - python
- python - 滑动邻域运算 PYTHON
- pandas - 如何拆分数据框列中列表中的每个字符串
- c++ - Eclipse 中的类型不匹配,同时通过“this”指针调用具有对象引用的友元函数
- docker - 如何创建构建 Docker 映像的 Jenkins 管道
- apache-beam - 延迟固定窗口触发几分钟