I was trying to follow directions in a Udacity class and when I did, it deleted the Main.Storyboard file in the project navigator (I don't think the file itself was deleted). I read the popup but fat-fingered the delete button instead of backing out. How can I get it back? Note: I am extremely new to programming, FYI...
Asked
Active
Viewed 8,284 times
7
-
1check out in trash if you pressed move to trash... – Bhavin Bhadani Aug 01 '15 at 06:17
-
2Are you using source control? Just checkout the file. – JAL Aug 01 '15 at 06:20
-
1Thanks for the hints, I figured it out. I accidentally deleted the reference and was able to bring it back. Live and learn, right? – Tibi Gurau Aug 01 '15 at 06:33
-
1I even don't know why this question has been downvoted so much. Vote +1. – Blaszard May 10 '16 at 09:47
1 Answers
19
I just happened to figure this out on my own. In case anyone else runs into this issue: Click file/open, navigate to your program folder, find Base.lproj, open Main.storyboard. If the file isn't there, you probably deleted and need to restore it from the recycling bin.

Tibi Gurau
- 391
- 3
- 9
-
2You were lucky this time. You need to use Source Control, Git is built into Xcode with a very reasonable interface. Then setup a remote repository, there are free ones such as Bitbucket and GitHub. Sooner to later you will loose code and realize backups are necessary. Also consider using TimeMachine, it is super simple to setup and recover files from. Do it today, do not wait until you need it and it is to late. – zaph just now edit – zaph Aug 01 '15 at 07:01
-
Recycling bin :D You running Xcode on a PC? Thanks for your answer. Found it just as described in the Base.lproj folder – Austin Wood Dec 13 '16 at 17:50