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 get this error:
I am not able to open my solution. IS THERE A WAY I CAN RECOVER MY PROJECT!?
Quit Xcode, then make a copy of the xcworkspace file (just in case). In finder, right-click the xcworkspace file and choose Show File Contents. In that directory, open the xcuserdata directory and delete any contents. Start Xcode again and open the project.
Open a projectClick Open on the Welcome screen or File | Open from the main menu. Navigate to the desired . xcodeproj directory. Specify whether you want to open the project in a new window, or close the current project and reuse the existing window.
Close Xcode and restart you mac. Then open Xcode project again. It will work.
Start Xcode on the Mac. Choose Preferences from the Xcode menu. In the General window, click the Locations tab. On the Location window, check that the Command Line Tools option shows the Xcode version (with which the Command Line Tools were installed).
Nothing mentioned above/below worked for me. 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 voilà.
Turns out that double-clicking on the actual file instead of selecting it from the Welcome to Xcode window will help open the project as expected!
Also, after the first time open it with double-clicking the file, the window will be fixed by itself 🤷🏻♂️
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