XCode 7.3.1 挂在“复制 swift 标准库”上

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/39084280/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 09:09:58  来源:igfitidea点击:

XCode 7.3.1 hangs on "copying swift standard libraries"

swiftxcodeios9

提问by Bishop

Since I have updated to XCode 7.3.1, I'm not able to run my project because it hangs on the "Copying Swift standard libraries" step (both from IDE and command line). It also crashes if I try to open the project configuration file or if I create a new Swift project.

由于我已更新到 XCode 7.3.1,我无法运行我的项目,因为它挂在“复制 Swift 标准库”步骤(来自 IDE 和命令行)。如果我尝试打开项目配置文件或创建新的 Swift 项目,它也会崩溃。

Does anyone have idea why this is happening?

有谁知道为什么会这样?

I'm running XCode on Mac mini (late 2012) with OSX 10.11.6

我在 Mac mini(2012 年末)和 OSX 10.11.6 上运行 XCode


SOLVED
Finally solved reinstalling XCode and SDK.
Thank you all for the answers.


解决了
终于解决了重新安装XCode和SDK。
谢谢大家的回答。

回答by Matt Channon

  1. Open Keychain Access
  2. You may find a LOT of appleid certificates (1000+ of them)
  3. Delete all of those appleid certificates.
  1. 打开钥匙串访问
  2. 您可能会发现很多 appleid 证书(其中 1000 多个)
  3. 删除所有这些appleid 证书。

Problem solved.

问题解决了。

回答by Brendan

I had this problem on Xcode Version 8.0 (8A218a) and OSX Sierra 10.12.1.

我在 Xcode 8.0 (8A218a) 和 OSX Sierra 10.12.1 上遇到了这个问题。

It turned out that Keychain access had been messed up with the OSX upgrade. For some reason Xcode was not surfacing the problem and was happily building but hanging on the "Copying Swift standard libraries..." leading me to do the usual fixes detailed here

原来,钥匙串访问被 OSX 升级搞砸了。出于某种原因,Xcode 没有出现问题,并且很高兴地构建,但仍然坚持“复制 Swift 标准库...”,这导致我进行了此处详述的常规修复

In the end what fixed it was resetting the Keychain (a pain I know!) and re-creating the developer certificates. There may be a better way which is less destructive but this is how I solved it.

最后修复它的是重置钥匙串(我知道很痛苦!)并重新创建开发人员证书。可能有更好的方法破坏性更小,但这就是我解决它的方法。

回答by Er. Khatri

open x-code -> window -> projects -> Derived Data click on the arrow there you will get the path of all your derived data., now first force quit your x-code and then delete this derived data folder found.. now reopen xcode n clean and try to build hope it works... Kudos

打开 x-code -> 窗口 -> 项目 -> 派生数据 单击那里的箭头,您将获得所有派生数据的路径。现在首先强制退出您的 x-code,然后删除找到的这个派生数据文件夹。重新打开 xcode n clean 并尝试构建希望它有效... Kudos