Xcode will not open my project

后端 未结 4 1309
情话喂你
情话喂你 2021-02-06 12:40

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

相关标签:
4条回答
  • 2021-02-06 12:46

    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.

    0 讨论(0)
  • 2021-02-06 12:53

    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.

    0 讨论(0)
  • 2021-02-06 12:59

    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.

    0 讨论(0)
  • 2021-02-06 13:08

    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.

    0 讨论(0)
提交回复
热议问题