Zombie:使用集成菜单存档失败
Zombie: Archiving Failed using Integration Menu
当我尝试使用 Xcode 菜单(Product - Archive)直接归档项目时,效果很好。但是当我尝试从集成菜单 (bot) 执行它时,出现了这个错误:
Build operation failed without specifying any errors. Individual build
tasks may have failed for unknown reasons. One possible cause is if
there are too many (possibly zombie) processes; in this case,
rebooting may fix the problem. Some individual build task failures (up
to 12) may be listed below.
发生了什么?我找不到任何错误消息,也完全不知道发生了什么。我已尝试重新启动 macmini 并还原更改,但它仍然如此。
更新(编辑 3)
问题已在 Xcode 11, from beta 3:
上修复
Xcode uses response files by default to pass input files to the Swift compiler. To turn this behavior off, set USE_SWIFT_RESPONSE_FILE to NO.
You can use an unlimited number of Swift files in a target. (35879960)
旧答案
我只看到当文件总数(注意它们各自的绝对路径计数)超过命令行长度限制时出现此错误(looks like it's imposed by the OS, currently 262144 bytes on my rMBP). It's a known issue.
要解决此问题(据我所知),您有 2 个选择:
快速(短期):将您的项目放在服务器上的较短路径上(例如将项目从 /Users/mrjimoy_05_server/myprojects/mycoolproject/
移动到 /p/mycoolproject
)
更好(长期):虽然第一个解决方案可能有效,但就目前而言,您可能会达到现在所处的相同点不久的将来。所以更好的解决方案是将您的应用程序模块化(将其分成frameworks/projects)。由于每个模块都将单独构建,因此达到限制并再次出现此错误会更加困难。
希望对您有所帮助。
PD:看起来 New Build System 抛出的错误是:
unable to spawn process (File exists)
编辑 1
现在 New Build System 在 Xcode 10 上抛出的错误是:
unable to spawn process (Argument list too long)
编辑 2
Swift team have solved this issue, but it also needs some work from the Xcode team,在最新发布的Xcode版本(10.2)
上还没有完成
当我尝试使用 Xcode 菜单(Product - Archive)直接归档项目时,效果很好。但是当我尝试从集成菜单 (bot) 执行它时,出现了这个错误:
Build operation failed without specifying any errors. Individual build tasks may have failed for unknown reasons. One possible cause is if there are too many (possibly zombie) processes; in this case, rebooting may fix the problem. Some individual build task failures (up to 12) may be listed below.
发生了什么?我找不到任何错误消息,也完全不知道发生了什么。我已尝试重新启动 macmini 并还原更改,但它仍然如此。
更新(编辑 3)
问题已在 Xcode 11, from beta 3:
上修复
Xcode uses response files by default to pass input files to the Swift compiler. To turn this behavior off, set USE_SWIFT_RESPONSE_FILE to NO.
You can use an unlimited number of Swift files in a target. (35879960)
旧答案
我只看到当文件总数(注意它们各自的绝对路径计数)超过命令行长度限制时出现此错误(looks like it's imposed by the OS, currently 262144 bytes on my rMBP). It's a known issue.
要解决此问题(据我所知),您有 2 个选择:
快速(短期):将您的项目放在服务器上的较短路径上(例如将项目从
/Users/mrjimoy_05_server/myprojects/mycoolproject/
移动到/p/mycoolproject
)更好(长期):虽然第一个解决方案可能有效,但就目前而言,您可能会达到现在所处的相同点不久的将来。所以更好的解决方案是将您的应用程序模块化(将其分成frameworks/projects)。由于每个模块都将单独构建,因此达到限制并再次出现此错误会更加困难。
希望对您有所帮助。
PD:看起来 New Build System 抛出的错误是:
unable to spawn process (File exists)
编辑 1
现在 New Build System 在 Xcode 10 上抛出的错误是:
unable to spawn process (Argument list too long)
编辑 2
Swift team have solved this issue, but it also needs some work from the Xcode team,在最新发布的Xcode版本(10.2)
上还没有完成