gpt4 book ai didi

swift - 将 Swift 单元测试添加到项目时,构建操作失败但未指定任何错误

转载 作者:搜寻专家 更新时间:2023-11-01 05:35:44 25 4
gpt4 key购买 nike

我目前正在开发一个 Objective C 项目,我们正在尝试将 Swift 合并到该项目中。当我向项目添加 Swift 单元测试时,我得到以下提示:

enter image description here

我创建了桥接头。但是,当我尝试运行我的测试时,我不断收到以下错误:

Build operation failed without specifying any errors. Individual buildtasks may have failed for unknown reasons. One possible cause is ifthere are too many (possibly zombie) processes; in this case,rebooting may fix the problem. Some individual build task failures (upto 12) may be listed below.

我用谷歌搜索了这个错误,大多数人说重启模拟器、xcode、你的机器等等。我已经完成了所有这些。问题似乎出在我的单元测试中使用 swift。

有什么想法吗?

最佳答案

尝试将您的项目移动到离您的根目录更近的位置。 Swift 编译器在大型项目中可能无法达到 ARG_MAX。

https://forums.swift.org/t/swift-compilation-reaching-arg-max-limit-causing-xcode-build-failure/6494

关于swift - 将 Swift 单元测试添加到项目时,构建操作失败但未指定任何错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40924628/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com