Skip to content

Instantly share code, notes, and snippets.

@hishma
Last active October 10, 2022 16:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hishma/673b34feb71709cdab90 to your computer and use it in GitHub Desktop.
Save hishma/673b34feb71709cdab90 to your computer and use it in GitHub Desktop.
HowTo Fix Xcode Documentation

Fix for missing documentation indexes and other anomolies in the Xcode documentation viewer. Mine seemed to get all borked up with some beta relaeases. Shamelessly ripped off from this thread.

  1. Quit Xcode
  2. Delete the cache file at ~/Library/Caches/com.apple.dt.Xcode.
  3. Delete the contents of ~/Library/Developer/Shared/Documentation/DocSets/.
  4. Delete the contents of /Applications/Xcode.app/Contents/Developer/Documentation/DocSets/.
  5. Launch Xcode.
  6. Open the Preferences pane, select the Downloads tab, and download the docsets you want to use.
@mattneub
Copy link

These instructions are outdated and yet they still helped me! Thank you for solving my issue

@hishma
Copy link
Author

hishma commented Sep 27, 2022

Oh cool. Feel free to leave a note with updated instructions!

@mattneub
Copy link

The modern equivalent is to delete ~/Library/Developer/Xcode/DocumentationCache and ~/Library/Developer/Xcode/DocumentationIndex.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment