Mistakenly remove reference of the whole project in Xcode

179 Views Asked by At

I am working on an iOS project but mistakenly I just remove reference of the whole project in Xcode. After that, I have tried to add all of these folders and files but now the scheme is gone that's why I can't build the project anymore. Can we fix this horrible problem?

1

There are 1 best solutions below

2
On

This is an ugly work-around, but it has been known to work.

  • Start a new project with the same name (just stored in a different place)
  • Remove all the code from the project navigator, including the storyboard
  • Import all the files and the storyboard from the original project.
  • Double-check the storyboard (I had problems with loss of segue IDs)

It took time, but at least it made the codesign problem go away.