Xcode will not open my project

30,334

Solution 1

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.

Solution 2

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

Solution 3

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

Solution 4

I was having this issue with Xcode 12. Opening Xcode, and selecting my project from 'Recent projects' list was causing Xcode to crash

My solution: I navigated to the folder and opened ProjectName.xcworkspace file, then it worked

Solution 5

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.

Share:
30,334
Tono Nam
Author by

Tono Nam

Updated on July 09, 2022

Comments

  • Tono Nam
    Tono Nam almost 2 years

    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!?