Xcode Project卡住了“编译Swift源文件”; [英] Xcode Project stuck "Compiling Swift source files"

查看:351
本文介绍了Xcode Project卡住了“编译Swift源文件”;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Xcode项目决定不构建,并且简单地卡在编译Swift源文件上。我正在用CocoaPods运行一个完全Swift的项目。我曾尝试清除所有派生数据,清理项目并重新启动计算机。我没有运气。我不确定为什么会这样。如果任何人有解决此问题的想法,将不胜感激。

My Xcode project had decided not to build and simple get stuck on "Compiling Swift source files". I'm running a completely Swift project with CocoaPods. I've tried clearing all derived data, cleaning the project, and restarting my computer. I've had no luck. I'm not exactly sure why this is happening. If anyone has any ideas to fix this, it would be greatly appreciated.

谢谢!

推荐答案

在我看来,问题出在一本复杂的字典。我正在为JSON解析测试创建一个大词典,并且编译从未完成。

In my case, the problem was in a complicated dictionary. I was creating a big dictionary for JSON parsing tests and the compiling never finished.

当我将大词典拆分成较小的片段时,一切正常。

When I split the big dictionary into smaller pieces, everything worked OK.

这篇关于Xcode Project卡住了“编译Swift源文件”;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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