简体   繁体   English

Xcode编辑器花费太多时间进行编译

[英]Xcode editor taking too much time in compiling

I'm a newbie in Swift. 我是Swift的新手。 I just created a new single view project in xcode9.3 and tried building it and its taking forever to compile. 我刚刚在xcode9.3中创建了一个新的单视图项目,并尝试构建它并永久编译。

Why is this so? 为什么会这样呢?

I have had something similar to this, and I found that restarting Xcode a few times should solve the problem. 我有类似的事情,我发现几次重启Xcode应该可以解决问题。

If this doesn't work, you might want to download the latest version of Xcode . 如果这不起作用,则可能要下载最新版本的Xcode As of now, I think the latest non-beta version is 9.4.1. 到目前为止,我认为最新的非beta版本是9.4.1。

Had the same issue in the past. 过去有过同样的问题。 The swift compiler have some issues with specific code styles which makes it sometimes compile files even slower. swift编译器在某些特定的代码样式上存在一些问题,这使其有时编译文件的速度甚至更慢。

In the end we quit Swift as a development language and moved to React Native and back to Objective-C on iOS projects as swift became too cumbersome. 最后,由于swift变得太麻烦了,我们退出了Swift作为开发语言,转而使用React Native并回到iOS项目上的Objective-C。

Moving forward, you might want to look at some of guides out there. 继续前进,您可能需要查看其中的一些指南。

This two looks promising. 这两个看起来很有希望。

Back when I was working on swift, this was guide we were using as a guideline: Part 1 Part 2 早在我研究Swift时,这就是我们用作指导的指南: 第1 部分第2部分

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM