No more quick help in Xcode editor

强颜欢笑 提交于 2019-12-19 05:48:30

问题


Quick help has gone away in my Xcode 5 (5.0.2 on OS X 10.8.5):

Instead of the little popup window that's supposed to pop up for the Opt - Click shortcut all that ever shows is the arrow image:

Been like this since the Xcode 5 upgrade. Any ideas how to fix it..?

FWIW: The doc sets are in fact properly installed - 'Opt' + Double-Click brings up the correct documentation as usual. Even removing the doc sets manually and re-downloadig didn't help.

The hovering Quick Help window is still gone..


回答1:


Quick Help behaves this way if JavaScript is disabled, and certain configurations seem to cause Xcode to write a user default disabling JavaScript following the upgrade. To fix it, delete the user default by running the following command from Terminal, then relaunch Xcode.

defaults delete com.apple.dt.Xcode WebKitJavaScriptEnabled



回答2:


Close Xcode then delete ~/Library/Caches/com.apple.dt.Xcode.

Reopen Xcode and option click on whatever you were interested in.

It seems to take a bit of time to be available after deleting the above directory. I option clicked a couple of things and after the third click it started working. Be patient!

Working for me on Xcode 8.2.1




回答3:


Matt's answer didn't work for me. The below code worked. Run the following command from Terminal, then relaunch Xcode.

defaults delete com.apple.dt.Xcode IDEIndexDisable




回答4:


It started working (Xcode 8.1) after I did go to: Xcode -> Preferences -> Components -> Switch to Documentation (if you are on Simulators)

Hit the download the documentation button. I did need to restart Xcode and also hit the Check and Install Now button. Before this it was not working.




回答5:


I just had this issue yesterday. It happened after I disconnected my iPhone from my computer, the target device switched to "Generic iOS Devices". All of a sudden, quick help stopped working, the symbols lost their icons in the auto-completion pop-up.

I just tried select any of the simulator device to get it working again. Or you can just reconnect your iOS device.



来源:https://stackoverflow.com/questions/20945758/no-more-quick-help-in-xcode-editor

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!