Reputation:
This is the first time I have been facing this strange issue
Whenever I click on a variable, function name, etc., that is what shows up in the Quick Help section of Xcode:
Error Domain=com.apple.DNTDocumentationSupport Code=0 "disk I/O error" UserInfo={NSLocalizedDescription=disk I/O error}
I have no idea what might be causing this issue, but it seemed to have started to occur when I updated my Xcode to version 9.4.1.
On Stack Overflow, I have only found one Q&A with the same error message, but I have restarted Xcode many times, but to no avail. Does anyone know how to fix this error?
Upvotes: 17
Views: 2593
Reputation: 3847
The main reason why this happens is usually because the Xcode documentation is missing or a new version of it is being downloaded in the background for you. For Xcode 9.4.1, you can check if the documentation has been downloaded and is in the correct place. Please do the following:
cd ~/Library/Developer/Xcode/DocumentationCache/
ls -al
cd v33/9.4.1/DeveloperDocumentation.index
ls -al
store.db
on the generated file listIf you don't find this, it is because your documentation is missing and/or your connection is too slow to download this database. Thus, you need to be patient and let Xcode download it to your disk.
To quit Xcode and relaunch it usually helps, because it forces the IDE to look for the cache and update its UI.
Upvotes: 9