Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What to do if you accidentally remove the reference to a file in Xcode?

Tags:

xcode

ios

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?

like image 980
tj75467 Avatar asked Nov 30 '25 11:11

tj75467


1 Answers

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.

enter image description here

like image 88
Toru Avatar answered Dec 01 '25 23:12

Toru



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!