user1114232
user1114232

Reputation: 91

Delete by mistake the storyboard

I delete the storyboard by mistake from my app.

Where I can find it and restore it,

or I lost it?

Upvotes: 3

Views: 2919

Answers (2)

rob mayoff
rob mayoff

Reputation: 385500

The default storyboard filename is Main.storyboard, so that's what you should look for unless you gave it a different name. (Older versions named it MainStoryboard.storyboard, so if you are working on an older project, you might need to look for that instead.)

First, check your project folder (using the Finder). If it's there, you can drag it back into your project in Xcode, or you can use the “Add Files to …” menu option.

If it's not there, check the trash can. If it's there, you can right-click it and choose “Put Back”, then follow the steps in the previous paragraph.

Upvotes: 4

Josef
Josef

Reputation: 452

Try running again your app and Xcode will create the file automatically, this worked for me.

Upvotes: 0

Related Questions