I've downloaded an Open Source Xcode project from GitHub, but I can't open it with Xcode ver 10 or ver 11 beta after updating my Mac to Catalina. I don’t have any problem making a new project though. I've already restarted my Mac few times but there’s no change.
I want some advice.
Per https://developer.apple.com/support/xcode/ , XCode 12.4 is the latest version that runs on Catalina. You will need a newer version to submit to the App Store.
Xcode 12 requires an Intel-based Mac running macOS Catalina 10.15. 4 or later.
The latest version of Xcode you can run on Catalina (10.15. 4) is Xcode 12.4 and Command Line Tools 12.4.
Close Xcode and restart you mac. Then open Xcode project again. It will work. Save this answer.
[UPDATE: I have now encountered this twice, so I added my second solution.] But spoiler alert...I'm pretty positive the issue stems from saving my Desktop and Documents folders in iCloud 🙄
The first time this happened for me, the following steps helped:
It looks like this is an issue related to the new folder permissions in Catalina. When I open System Preferences > Security & Privacy > Privacy > Files and Folders, I see that Xcode appears to have permission to see the pertinent folders. I used VS Code for something else earlier today and it also prompted to ask for access to iCloud Drive. I'm not sure why, but Xcode only shows permission for Desktop and Documents.
How I was able to fix the issue, is that I went to the 'Derived Data' folder for Xcode.
If you're unsure how to do that, here are the steps I did:
After doing that, I was able to successfully open all my projects. Hopefully this works for you, but let me know if you have any different experiences or if you get stuck anywhere. Good luck!
I encountered the issue again after updating to beta 5, and doing the above steps did not work for me. I also tried removing my GitHub account, which also didn't help. Here is how I fixed it the second time:
I turned off iCloud Drive in my settings and actually removed everything from my computer from iCloud Drive (for me, it's the Desktop and Documents folders that sync to iCloud). After a while I turned it back on and played with the settings a bit. I then downloaded all the files in my Desktop and Documents folders (from iCloud).
[I'm not sure if this next part was actually part of the solution, but I'm going to just include it anyway since I only noticed it working after I did this...but I suspect that it just took a while for the files to download]
I then turned off permission for Xcode to access the Desktop and Documents folders.
Here is a screenshot for where "Files and Folders" lives:
It didn't ask for permission again, but I forgot about unchecking all the boxes. Then, for some incredibly strange reason...Xcode magically worked again and opened my files. I suspect it was something weird with iCloud and that I finally had downloaded the files I needed for the specific project I've been trying to work on. Later on it wouldn't let me edit the files because I didn't have permission, so I went back to System Preferences and turned on permission for Xcode to access those folders. Everything seems to be in perfect working order now!
This trick will work in my case, hope it will work for you also.
simply go to your project which you want to open, just simply right click on your_project.xcworkspace and go to show Package Contents then deleted the two folder xcsharedata and xcuserdata only(don't worry it will again recreate when you open your xcworkspace again).
Now you have to go to your_project.xcodeproj and go to show Package Contents then deleted the folder named xcuserdata only(don't worry it will again recreate when you open your xcworkspace again).
after doing above task you can open your project.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With