Kingalione
Kingalione

Reputation: 4265

How to restore the main.storyboard after deleting the .xcodeproj and adding it back

In my iOS application I deleted the .xcodeproj file to remove it from git control and then I've add the same file few days later.
Now I have a storyboard which is the one from a few days and I have changed a lot on the storyboard. So how can I regenerate the correct storyboard back?
The thing is, that everything works if I start the application except that I can't work with the storyboard in this form.

For example a scene in my storyboard looks like this:

enter image description here

The white views are not displayed

Upvotes: 0

Views: 1205

Answers (1)

Hodson
Hodson

Reputation: 3556

  1. Open your Xcode project
  2. Right click on the folder your want to add your Storyboard file to
  3. Click Add files to "your-project-name"...
  4. Browse to your storyboard and add it

Upvotes: 1

Related Questions