-2

I recently trashed my Xcode 4.6.3 and download its replacement from the App Store. Now I can't access symbols for definitions via 'Jump To Definition' contextual menu.

I get 'Symbol Not Found'; ALL THE TIME!

Is there a way to re-index everything so Xcode 4.6.3. is aware?

jscs
  • 63,694
  • 13
  • 151
  • 195

2 Answers2

3

What I did for Xcode 7.3:

  1. close Xcode
  2. rm -rf ~/Library/Developer/Xcode/DerivedData
  3. rm -rf project.xcworkspace (in your .xcodeproj)
  4. rm -rf xcuserdata (in your .xcodeproj)
  5. open Xcode. you need to wait for the indexing finished
  6. profit!!!

My symptom is that all "jump to definition" failed even for hello world projects. After resetting everything , it works again ^_^

Hai Feng Kao
  • 5,219
  • 2
  • 27
  • 38
1

To make Xcode rebuild the index for a project, you need to delete the project's Derived Data.

From the menu bar, choose Window > Organizer. In the Organizer window, choose the Projects tab. Find your project in the list on the left. Click the “Delete…” button to the right of the Derived Data path for the project.

Derived Data delete button

rob mayoff
  • 375,296
  • 67
  • 796
  • 848