Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode will not open my project

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:

enter image description here

I am not able to open my solution. IS THERE A WAY I CAN RECOVER MY PROJECT!?

like image 484
Tono Nam Avatar asked Sep 03 '11 00:09

Tono Nam


People also ask

Can not open project in Xcode?

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.

How do I open a project in Xcode?

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.

Could not open workspace file at Xcode?

Close Xcode and restart you mac. Then open Xcode project again. It will work.

How do I open Xcode on Mac?

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).


2 Answers

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à.

like image 51
Rudolf Adamkovič Avatar answered Sep 23 '22 01:09

Rudolf Adamkovič


Double click the actual file! NOT the recent item!

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 🤷🏻‍♂️

like image 42
Mojtaba Hosseini Avatar answered Sep 19 '22 01:09

Mojtaba Hosseini