amergin
amergin

Reputation: 3176

Xcode 7.2 Documentation Always Fetched From Internet

I am on Xcode 7.2 and whenever I do a search on the documentation it takes about 2 seconds to display the answer. It appears to be reading it from the Internet every time as when I disconnect from the Internet nothing happens and no new pages are loaded. The image below shows that I have the documentation downloaded. Any suggestions would be greatly appreciated (I have quit Xcode, restarted, etc)

screen grab from xcode prefs

Upvotes: 1

Views: 253

Answers (1)

Jungen yan
Jungen yan

Reputation: 222

I got the same problem, finally, I solved this by those steps.

  1. Download the documentation which you want in the preferences -> downloads
  2. Open Finder
  3. click Application in left column
  4. locate the Xcode, right click, and pick show package contents
  5. go to this directory, contents -> Developer -> Documentation -> DocSets
  6. Here you can see five files, pick which name is same as you download documentation, for me, I choose com.apple.adc.documentation.iOS.docset, put it to trash.
  7. restart Xcode, problem solved.

Maybe Xcode use above location and not prefer to ~/Library/Developer/Shared/Documentation/DocSets, I think.

Upvotes: 5

Related Questions