Why "Add Documentation" is disabled in Xcode 8.2? How can I enable it?
This issue seems to appear randomly for myself as well. The only surefire way I've found to re-enable it is to run
sudo /usr/libexec/xpccachectl
in the terminal and restart my computer.
For the making it enable you need to select code first like following gif and you can add documentation based on selection.
It's ridiculous that it still happens even with Xcode 10.1. And it have a ridiculous solution:
Exit Xcode, then rename Xcode.app to something else like Xcode1.app, then back to Xcode.app. For Appstore version you will be asked for admin password.
Related
If I open IntelliJ IDEA and try and import any project or open any folder containing a project, nothing happens, I'm just returned to this screen.
Earlier on, before I moved my project files around, I tried to set a new JDK for a project and i clicked add SDK and then selected Java 12 home and again it returned to the screen without adding anything.
Is there some permission I need to grant to IntelliJ Idea?
Seems to have started since installing MacOS Catalina.
It's a known issue specific to the recent macOS Catalina update. Please follow YouTrack ticket for updates.
You can also help by providing the following information in YouTrack:
Open the file chooser, select a directory (but don't open it yet), take a screenshot, then open a directory; then attach idea.log and the screenshot (a path to a project and a time of the operation are needed, too, but they should be guessable from the screenshot).
As a workaround until this issue is resolved you can add -Dide.mac.file.chooser.native=false in Help | Edit Custom VM Options and restart the IDE.
Mac OS, Mojave or Catalina,
Exit intellij first,
Apple menu > System Preferences, click Security & Privacy, then click Privacy.
Click the lock , then enter your administrator password.
From the list of items on the left, select Full Disk Access.
Add Intellij(or other whatever app having this problem) to the apps allowed full-disk access by using the add button.
Lock and try again.
Hope this will help.
Ref from apple support of other things, but I tried, it works!
I can temporarily open things by dragging a folder to that window it seems, but its' not ideal.
Faced the same problem after the (PyCharm) update. Workaround: Go back to the old version.
https://stackoverflow.com/a/59858297/7024760
Previously on programmers.stackexchange.com but apparently off-topic for that forum.
I have found people complaining about the issue here: https://blog.jetbrains.com/idea/2016/08/intellij-idea-2016-2-3-update-is-out/
I cannot ctrl+c or alt+3 so keybindings are messed.
Any ideas / temp fixes / resolutions before Jetbrains do a patch?
Workaround from JetBrains:
Masatoshi Iwasaki Kieran Simpson Please, specify this jdk as a boot jdk https://bintray.com/jetbrains/intellij-jdk/download_file?file_path=jbsdk8u112b325_osx_x64.tar.gz
Download the archive
Unpack it
Run "Switch IDE boot JDK" action
Select "..." in the checkbox
Specify the unpacked directory in the file chooser
Reboot
https://youtrack.jetbrains.com/issue/IDEA-160416#comment=27-1594109
You can try using the Standard JDK 1.8_102 I then had the terminal working again, but fonts were ugly.
It is a general issue, I change my update channel to "Early Access Program"
I update to IntelliJ 2016.2.4 (is the last RC) and them I change my channel again, be careful and don't update to IntelliJ 2016.3 except you really want to.
You can do that going to the menu option "check updates" and click in the link updates in the middle of the text.
The close the popup and go to check updates again.
Remember change back your update channel.
The quick help feature is working just fine when I open an Xcode project, however when opening a file (e.g. abc.swift) that's not in an open project, the documentation does not appear.
Here is an example:
Install the version of the Command Line Tools for your Xcode
`Xcode menu -> Open developer tools -> More Developer Tools
Restart Xcode. It helped me to see Quick Help again and also fixed git crash.
The below code worked for me. Run the following command from Terminal, then relaunch Xcode.
defaults delete com.apple.dt.Xcode IDEIndexDisable
As an occasional user of XCode, what I still needed to do was download the documentation, which was not installed with the XCode install and/or did not carry over from a previous version of XCode.
From the Preferences dialog, click the Components tab, click on Documentation, and then click the download button for Guides and Sample Code.
Probably obvious for regular users of XCode, but I thought I would write it out for anyone else having this problem, since this was at the top of the Google search.
This is what worked for me. I closed Xcode and then deleted ~/Library/Caches/com.apple.dt.Xcode.
Then I reopened Xcode and checked. It worked after that. I'm currently on Xcode 10.2.1.
It's worked for me, just move the Xcode.app into Applications folder if not exist over here ;)
I'm having issues with Xcode being quite unreliable when using the keyboard shortcut to comment or uncomment code ⌘+/. I can't seem to find a real pattern as to when it breaks, but it usually happens after building and running my code on the simulator. It will not work again until I edit something in any one of my code files. Even if I switch to another file in the main view, commenting via shortcut does not work. Other keyboard shortcuts, such as indenting ⌘+[ continue to work just fine.
Do other people have this issue, and if so, have you found a solution? I know it seems like a small complaint, but when running and then quickly trying to comment out a block of code to check the effect, it's a bit of an inconvenience.
I am using Xcode 6.1 (6A1052d) on OXS Yosemite 10.10 (14A389) and developing in Objective-C for iOS if that matters.
For an Xcode 8, solution is
sudo /usr/libexec/xpccachectl
and restart your computer.
Hit ⌘+] once and then ⌘+/ will start working again.
You can hit ⌘+[ to undo the indentation effect.
Update:
Please note- This solution was provided prior to Xcode 8 launch so it may not work for everyone. If you are still facing problem, kindly refer to #CryingHippo's answer instead of downvoting.
I have done this numerous times with Xcode 8. Latest being Xcode 10.1 where I would just quit Xcode and go to Applications and rename Xcode to something else, e.g. Xcode 2, launch it, quit again and rename back. It starts working after that. No Mac restart or Terminal commands required.
It still works as of Xcode 10.1. I cannot believe Apple still hasn't fixed it properly.
None of the above solutions worked for me with Xcode 8.0 (final). If you also have Xcode 8.1 beta installed like I do, try this: simply rename /Applications/Xcode-beta.app to something else, then restart Xcode 8. Oddly enough, that did the trick.
Oscahie's answer actually works for non-beta versions of Xcode as well. Here are the steps to follow, based on Sam's comment:
Close Xcode
In the Application folder, rename Xcode.app (or similar) to Xcode2.app. You might need to type in your password.
Open Xcode, then close it.
Rename Xcode2.app back to what it was before.
(Optional) Spend 5 minutes wondering why this worked.
No need to reboot!
I didn't have to do any of the above. A simple reboot fixed it.
A simple workaround works good for me with following steps:
Comment any line i.e. simply add "//" in front of a line.
Press Command + "/" and it starts working.
It might help someone.
In my code I had this sequence:
/*" BLABLA MY COMMENTS */
All the code under this was not "commentable".
Removed the " and it was ok !
Hope it helps!
I just had the same issue after setting up a new Mac with Xcode 10.1 using the German keyboard layout.
The solution was to disable the Keyboard shortcut in system settings for the help menu.
System settings > Keyboard > Shortcuts > App shortcuts.
There was a shortcut for all apps to show the help menu.
If you have that, click the checkbox to disable it
I am using Xcode 8.1 (not beta) and I had the same problem, not able to cmd+\ to comment. Restart Xcode not working for me but RESTART my Mac SOLVED the problem without a need to remove cache.
I had this problem in Xcode 8.0. Even though I already move Xcode 8.1-beta somewhere else (It's at Application/Xcode otherversions/Xcode 8.1-beta.app). I have to delete it to the trash, restart Xcode 8.0, and cmd+/ somehow works again.
Just quit xcode completely and restart. Worked for xcode 8.2
I was also facing this issue, when having multiple Xcode installed.
In which Xcode version you are you facing this problem, to solve this, the Xcode should be in the Application Folder. If it resides in the subfolder than move it to the Application folder directly.
I found a pattern where toggle comments do not work.
In fact, uncomment works, but comment don't, from keyboard as well as from the Editor menu.
This happens in a specific file, suggesting there is something in text that prevents from working.
I tested on XCode 10.1ß and on XCode10.2, on different machines.
Text before this line can be commented, text after cannot (I kept text exactly as is)
let alert = UIAlertController(title: "" /*"Teste texte"*/, message: "Love\nWe'll recommend more for you" /* Entrez des chiffres"*/, preferredStyle: .alert)
It appears that the /* … */ inside the UIAlertController() is the cause.
If I suppress both comments inside, everything works OK.
I filed a bug report. # 49907361
Nothing above worked, even after trying multiple times.
Just reinstalled new xcode using AppStore app, previously I installed xcode after downloading from
developer.apple.com/downloads. that is .xip file
Wait for new update and install.
Another reason may be that xcode isn't in Application directory.
I just installed a software update that I was prompted for, presumably affecting Xcode. Now when I start Xcode, I am presented with a dialog box which states that Xcode must install the Mobile Device Framework before continuing. When I try to do this, after providing my password, it fails with "An unknown error occurred. See the install log for more details." I do not see anything useful in install.log that identifies the problem. I've tried re-installing multiple times and rebooting to no avail.
I'm currently running Xcode 4.3. Perhaps I need to upgrade to 4.4? Has anyone else run into this problem?
This problem has once again appeared in Xcode 11.1 and is caused by an invalid certificate that expired some day in October 2019.
You can work around the problem by temporarily changing the system date to before the certificate expiration date.
In the case of Xcode 11, set the system date to Oct 3, 2019, run Xcode, then change the date back after the components have installed.
In Xcode version 4.3.1 (4E1019), I suspect that I got the problem after an iTunes update this morning. Found the following somewhere on the web:
Go to Applications folder
Right click Xcode
Click Show Package Contents
Then navigate to Contents/Resources/Packages. Double click on Install MobileDevice.pkg.
Just change the date to October 2019:
I tried installing the required components:
but I had the same issue:
I recommend #Darren answer (https://stackoverflow.com/a/58651694/7602110) but I tried another way, which was uninstalling Xcode and installing it back again, is not the best way to go, because we all know how long that Xcode takes to install, but it also works and was worth sharing.
im resolver that change terminal date for example:
sudo date 103106
The same happened to me after an update to Big Sur version.
A very similar solution as reported here by #cugino worked to me, as follows:
Go to "Applications" folder > Right click Xcode > Click Show Package Contents > Then navigate to Contents/Resources/Packages.
Double click on Install XcodeSystemResources.pkg.
Using cugino's answer above solved it for me. In my case, the certificate used to sign the .pkg file had expired. This may be the reason for anyone experiencing this after February 14, 2015
I am a newbie in iOS development
I was facing same problem while trying to install XCode 6.4 on my 2009 mac pro 13inch with macOS yosemite. I do not know why, just after I changed the system time back to 10th October 2019 according to one of the answers in this thread and click on "try again" button, XCode was finally installed and running!
After this, I changed my system time back to current time (chose the automatic date and time option) and everything works good for me.
Change Time in OS x10.11 or ....
This worked for me:
$ sudo xcode-select --switch /path/to/Xcode.app
$ sudo xcodebuild -runFirstLaunch