Xcode 6 with Swift Super Slow Typing and Autocompletion

Xcode 6 with Swift super slow typing and autocompletion

  • 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/*"

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.

XCode 6.1 Very Slow Typing for SWIFT

On Xcode 6 make sure you are running Yosemite

  • Try re-installing xcode 6.1
  • Try restarting your entire system

  • Your RAM might be low for some reason, and this could definitely be the cause. Get Memory Clean from the app store to free up some RAM

  • Create an entirely new swift project and delete the old one and see if the issue persists

Hopefully one of these options solved your problem!

Big Swift class results in slow autocomplete inside Xcode - How to split into several files

You've essentially answered your own question with the extension's that don't require the use of inheritance or subclasses.

With extensions you can move code to other files and still access everything is your original ViewController class as if it was within the same file.

Example:

class viewController : NSViewController {

}

// new file
extension viewController {

}

Xcode 6 isn't autocompleting in Swift

This fix from apple dev forums works for me. I have had performance/autocomplete issues since beta 5 i think and now xcode 6.1/Yosemite on my old 2010 MBP is working flawlessly.

  1. Quit Xcode.
  2. Restart the computer (this is to clear any in-memory caches).
     
  3. Delete the contents of the DerivedData folder
    (~/Library/Developer/Xcode/DerivedData)
  4. [This is the key move:] Delete ~/Library/Caches/com.apple.dt.Xcode.

Now launch Xcode once more…



Related Topics



Leave a reply



Submit