I recently downloaded Xcode directly from apple.com (I didn't use the App Store). Now I try to open it, but it just says "Checking Xcode", it loads until the progress bar reaches 100% and then it does nothing.
What can I do?
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.
Sign up to join this communityDelete all files at
~/Library/Preferences/com.apple.dt.*
Manually install Developer Tools from Terminal by running
xcode-select --install
Reinstall "XcodeSystemResources.pkg" from contents of Xcode.app itself
/Applications/Xcode.app/Contents/Resources/Packages/XcodeSystemResources.pkg
Finally Xcode 9.0.1 (9A1004) worked perfectly.
I see that you said that you downloaded Xcode from Apple.com, so you must have downloaded a beta version. The same issue also happened to me when the Xcode 7 beta came out. For whatever reason this sometimes happens when trying to run the betas.
Unless there is a big reason why you can't (some feature you need for app development), just download Xcode from the Mac App Store and you shouldn't run into this issue again.
On MacOS High Sierra (10.13.4) I started XCode (9.3) and it immediately quit without any message. The solution was to
Find and close any running app that takes too much system resources (CPU, memory)!
In my case Android Studio got stuck and was running with 400% CPU power.
I had a simmilar issue. I solved it following this answer:
sudo rm -rf /Library/Developer/CommandLineTools
)xcode-select --install
).I use xed .
to open my project/workspace.
I accidentally hit xed /
and that some how put Xcode is a weird state that upon opening any project Xcode would just open a spinning wheel.
I restarted and deleted my derived data a couple times but nothing worked.
What fixed it was opening a single file with xed
i.e. I just did xed foo.swift
and I was then able to open projects in Xcode.