Xcode stuck on Indexing
I had this exact problem, it was caused by a 20 item array literal. Had to switch to different syntax. Pretty silly.
- Open your Project Folder.
- Find ProjectName.xcodeproj file.
- Right-Click Copy and Paste to Safe Place.
- Right-Click Show Package Contents.
- Find project.xcworkspace file and delete that file.
- Reopen Your Project and clean and Rebuild.
If your problem is not solved then replace the file with your backup file.
- Close that project from Xcode
- Open Xcode Organizer, find the problematic project
- Delete Derived Data folder in the Organizer
- Close/re-open Xcode
Nuking Derived Data is the first thing to try in all cases of Xcode misbehaving