In the middle of coding an app, I wanted to delete a button. What I did not realize was that I was actually selected main.storyboard. When I pressed backspace to delete main.storyboard I pressed "Remove reference". At this point I tried command + z, but ,unfortunately, main.storyboard did not come back.I tried to run the app but I kept getting signal SIGABRT.
My question here is if you accidentally remove the reference to a file is there any way of recovering it?
Only "Remove reference", the file is disappearing only from Xcode and remaining in your real folder. Try to add Main.storyboard again from Xcode file navigator like this.

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