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 extension
s 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.
- Quit Xcode.
- Restart the computer (this is to clear any in-memory caches).
- Delete the contents of the DerivedData folder
(~/Library/Developer/Xcode/DerivedData) - [This is the key move:] Delete ~/Library/Caches/com.apple.dt.Xcode.
Now launch Xcode once more…
Related Topics
Nsinteger and Nsuinteger in a Mixed 64Bit/32Bit Environment
"Your Binary Is Not Optimized for iPhone 5" (Itms-90096) When Submitting
Google Maps iOS Sdk, Getting Current Location of User
Rotate a Uiview Around Its Center But Several Times
Swiftui: Navigationdestinationlink Deprecated
Missing Push Notification Entitlement Warning
How to Add Iphonex Launch Image
Uibutton in Cell in Collection View Not Receiving Touch Up Inside Event
Disable Swipe Back Gesture in Swift
How to Do Programmatically Gradient Border Color Uibutton with Swift
Modal Segue, Navigation Bar Disappears
iPhone Image Captured from Camera Rotate -90 Degree Automatically
Uitextview Cursor Below Frame When Changing Frame
Nehotspothelper Annotations Not Appearing
Swift Formatting String to Have 2 Decimal Numbers If It Is Not a Whole Number
Table Header View Height Is Wrong When Using Auto Layout, Ib, and Font Sizes