Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode stuck on Indexing

A project I've been working for 2 months stopped working for no reason because Xcode got stucked on "Indexing". I can't Build the project anymore. If I try to build, Xcode freezes and I have to force quit. This happens only with this project.

I tried cleaning all derived data but didn't help.

I'm using Xcode 4.5.2.

Any ideas?

like image 248
tomDev Avatar asked Dec 12 '12 01:12

tomDev


People also ask

How do I stop indexing in Xcode?

Try this: Make an empty folder on Desktop & lock it (Get info > check locked) . Then in Xcode project, file menu > project settings. In derived data settings, choose custom path. Browse to select that locked folder and try if Xcode troubles you now.

How do I force an index in Xcode?

While Xcode is open, you can rename the folder that your project is in. Just tweak it with an extra space or something, and when you get the message to close or resave. Just close the project and open it again. Xcode will then index the project.


1 Answers

  1. Open your Project Folder.
  2. Find ProjectName.xcodeproj file.
  3. Right-Click Copy and Paste to Safe Place.
  4. Right-Click Show Package Contents.
  5. Find project.xcworkspace file and delete that file.
  6. Reopen Your Project and clean and Rebuild.

If your problem is not solved then replace the file with your backup file.

like image 135
Pratik Mistry Avatar answered Oct 12 '22 23:10

Pratik Mistry