Zombie:使用集成菜单归档失败 [英] Zombie: Archiving Failed using Integration Menu

查看:166
本文介绍了Zombie:使用集成菜单归档失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试使用Xcode菜单(产品-存档)直接归档项目时,它运行良好.但是,当我尝试从集成"菜单(机器人)执行它时,出现此错误:

When I tried to archiving the project directly using Xcode menu (Product - Archive), it works well. But when I tried to execute it from the Integration menu (bot), I got this error:

构建操作失败,未指定任何错误.个人打造 任务可能由于未知原因而失败.一个可能的原因是如果 进程太多(可能是僵尸进程);在这种情况下, 重新启动可能会解决该问题.一些个别的构建任务失败(向上 到12).

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,并还原所做的更改,但仍然如此.

What happen? I couldn't find any error messages and completely have no clue on what's going on. I have tried to reboot the macmini and also revert the changes but it still.

推荐答案

UPDATE(编辑3)

此问题已在从beta 3开始的Xcode 11中已解决 :

UPDATE (Edit 3)

The issue has been fixed on Xcode 11, from beta 3:

  • Xcode默认使用响应文件将输入文件传递给Swift编译器.要关闭此行为,请将USE_SWIFT_RESPONSE_FILE设置为NO.

  • 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.

您可以在目标中使用无限数量的Swift文件. (35879960)

You can use an unlimited number of Swift files in a target. (35879960)

旧答案

我仅在文件总数(注意所有它们各自的绝对路径计数)超过命令行长度限制(这是一个已知问题.

Old answer

I've only seen this error arising when the total of files (notice all their respective absolute paths count) exceed the command line length limit (looks like it's imposed by the OS, currently 262144 bytes on my rMBP). It's a known issue.

要解决此问题(AFAIK),您有2个选项:

To fix this (AFAIK), you have 2 options:

  • 快速(短期):将项目放在服务器上的较短路径上(例如将项目从/Users/mrjimoy_05_server/myprojects/mycoolproject/移到/p/mycoolproject)

  • Fast (short term): Put your project on a shorter path on the server (like moving the project from /Users/mrjimoy_05_server/myprojects/mycoolproject/ to /p/mycoolproject)

更好(长期):虽然第一个解决方案可能会奏效,但目前看来,您可能会在不久的将来达到现在的目标.因此,更好的解决方案是将您的应用程序模块化(将其分为框架/项目).由于每个模块都将单独构建,因此要达到极限并再次出现此错误将更加困难.

Better (long term): While the first solution might work, for now, you'll probably reach the same point where you're now in the near future. So a better solution is to modularize your app (separate it into frameworks/projects). Since every module will get built separately, it'll be much harder to reach the limit and get this error again.

希望对您有帮助.

PD:看来 New Build System (新构建系统)引发的错误是:

PD: Looks like the error thrown by the New Build System is:

无法生成进程(文件存在)

unable to spawn process (File exists)

编辑1

新构建系统在Xcode 10上抛出的错误现在是:

The error thrown by the New Build System on Xcode 10 now is:

无法生成进程(参数列表过长)

unable to spawn process (Argument list too long)

编辑2

The Swift team have solved this issue, but it also needs some work from the Xcode team, which hasn't been done yet on the latest released Xcode version (10.2)

这篇关于Zombie:使用集成菜单归档失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆