X code 6与雨燕超慢打字和自动完成 [英] Xcode 6 with Swift super slow typing and autocompletion

查看:155
本文介绍了X code 6与雨燕超慢打字和自动完成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

难道只是我或X code 6(6.0.1)与斯威夫特似乎超慢当你输入你的code,尤其是自动完成?

Is it just me or Xcode 6 (6.0.1) with Swift seems to be super slow when you type your code, especially with autocompletion?

一个正常的Objective-C类,即使斯威夫特项目中,作品几乎和以前一样,所以这是斯威夫特,杀死它。

A normal Objective-C class, even if inside a Swift project, works almost the same as before, so it's Swift that kills it.

没有任何人遇到同样的不便?你有没有对如何提高性能的任何想法?

Does anyone else experience the same inconvenience? Do you have any idea of how to improve performance?


  • 我试着用一些设置,但没有运气玩了。

  • 我当然也试图重新启动X code和没有运气计算机。

  • 没有其他重
    应用程序是开放的。

我使用的是2009年中的MacBook Pro(2.26 GHz英特尔酷睿2)具有8GB内存和SSD硬盘,这是不是最新的东西可言,但仍然不是一个完整的垃圾。

I use a Mid 2009 Macbook Pro (2.26 GHz Intel Core 2 Duo) with 8GB RAM and SSD HD, which is not the newest thing at all, but still not a complete junk.

这是因为我很兴奋地开始使用斯威夫特一个耻辱,现在真的是难以承受的。

It is a shame as I was excited to start using Swift and it is now really unbearable.

思想/提示吗?

推荐答案


  • 退出X code和重启Mac是不是必需的,但preferred。

  • 删除文件夹的内容
    〜/资源库/开发/ X code / DerivedData
  • 删除内容〜/图书馆/缓存/ com.apple.dt.X code

  • Quit Xcode and restart the Mac are not required but preferred.
  • Delete the content of the folder ~/Library/Developer/Xcode/DerivedData
  • Delete the content ~/Library/Caches/com.apple.dt.Xcode
  • 这是一个暂时的解决方案,但工程很大。

    This is a temporally solution, but works greatly.

    下面使用脚本编辑器应用程序的脚本。

    Below the script using Script Editor app.

    tell application "Terminal"
        do script "rm -frd ~/Library/Developer/Xcode/DerivedData/*"
        do script "rm -frd ~/Library/Caches/com.apple.dt.Xcode/*"
    end tell
    

    另外,你可以为你的终端这样创建别名:

    Alternatively, you can create an alias for your terminal like this:

    alias xcodeclean="rm -frd ~/Library/Developer/Xcode/DerivedData/* && rm -frd ~/Library/Caches/com.apple.dt.Xcode/*"
    

    您可以添加到您的〜/ .bash_profile中,然后键入 X codeclean 的命令行每次你想清除这些两个文件夹。

    You can add that to your ~/.bash_profile and then type xcodeclean on the command line every time you would like to clear those two folders.

    这篇关于X code 6与雨燕超慢打字和自动完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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