I where working with a project and I closed because my computer was geting slow. When I tried to open my solution again xcode quitted. So everytime I try to open my project I ge
In my case, the project was moved to my iCloud Drive without me noticing it.
If it happens to you too, just go to your Finder, locate the project and check if there is a cloud next to it. Just right click it and "Download now". Try again once the download is finished.
There are a couple of things you can try, first make sure Xcode is not running ,trash the ~/Library/Cache/ folder contents, and trash the contents of the ~/Library/Developer/Xcode/DerivedData/ folder, if you what to can just find the stuff for your project in ~/Library/Developer/Xcode/DerivedData/ and trash just that. Then restart your computer.
If that doesn't work, rename your faulty projects folder to so method like ' old', create a new project of the same name, and then move all of the source files from ' old' to you new project and add them. Its a bit painful I known but I have had to do this once to get a project working again.
Nothing mentioned above/below worked for me. So, here's what I did instead.
Right click on the .xcodeproj
file and select Show Package Contents. Then delete the project.xcworkspace
file. Open the project in Xcode and viola! I hope this helps somebody.
If you're working with git, right click the project-name.xcodeproj > Show Package Contents
, open the file project.pbxproj
and check for conflict and resolve it.