Ben Lu
Ben Lu

Reputation: 3042

Xcode 5 dp crashes when typing any code

Initially I thought it was Apple's fault. My Xcode 5 dp crashes every time when I tried to type any code.

Xcode crashes

Upvotes: 3

Views: 1927

Answers (7)

vokilam
vokilam

Reputation: 10313

In my case the problem was in user defined code snippets, located at ~/Library/Developer/Xcode/UserData/CodeSnippets. Two different snippets had same Completion Shortcut.

Upvotes: 0

ILYA2606
ILYA2606

Reputation: 605

In Xcode 5 go to Preferences > Source Control > Uncheck the Enable Source control

Upvotes: 4

Skodik.o
Skodik.o

Reputation: 514

I had same problem. If you go to XCode -> Preferences -> Source Control and turn OFF Source Control everything works like a charm and there are no more crashes!!! :) Hope this help ;)

Upvotes: 0

Iggy
Iggy

Reputation: 8669

Additionally you should also remove any plug-ins that are located at ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/ If all fails, you might have to uninstall Xcode

Upvotes: 0

webcpu
webcpu

Reputation: 3432

  1. Launch Terminal
  2. cd ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/
  3. cd ~/Library/Developer/Xcode/Third-Party\ Plug-ins/
  4. Rename/Delete your Plug-ins one by one until XCode 5 works.

Upvotes: 5

Kalaichelvan
Kalaichelvan

Reputation: 220

Great Post. For my case, it is another type of xcode plugin name called "lin" which will do the similar thing. After the plugin is moved to trash, works fine.

Upvotes: 0

Ben Lu
Ben Lu

Reputation: 3042

This problem has something to do with auto completion. I remembered I installed a plugin KSImageNamed. It will auto complete your image name when typing -[UIImage imageNamed:]. And most importantly, I saw its name in crash report.

Solution: Go to ~/Library/Application Support/Developer/Shared/Xcode and delete KSImageNamed.xcplugin.

Delete KSImageNamed

Upvotes: 3

Related Questions