Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS5 Storyboard error: Storyboards are unavailable on iOS 4.3 and prior

I've built a small app using storyboards and it ran great. Just before final testing I decided to try it out to see if it runs on iOS 4.3. I clicked on the gray 5.0 in the project settings and selected 4.3.

The app failed to build with the following error message:

Storyboards are unavailable on iOS 4.3 and prior

Both the iPhone and iPad storyboards tell me that.

The issue that when I switched back to iOS5 target, I still keep getting these errors from both storyboards, and the product won't build! I checked: iOS Deployment target in projects settings is 5.0 Target app deployment target is 5.0 Build settings uses iOS 5.0 SDK

What else do I need to do to restore my project to a buildable state? Is this a brand new bug or am I forgetting something?

Update: I kept getting this error even after doing a clean. I changed the debugger in Schemes to "LLDB" and did an additional clean, the project now builds and compiles

like image 657
Alex Stone Avatar asked Oct 15 '11 23:10

Alex Stone


People also ask

What are iOS storyboards?

A storyboard is a visual representation of the user interface of an iOS application, showing screens of content and the connections between those screens.

How do I add a storyboard in Xcode?

From the File menu, choose New→New File... In the New File dialog, make sure you have selected the Resource subcategory of the iOS category on the left. Then choose the Storyboard item on the right and press Next (see Figure 4-24). In this screen, pick the Device Family for which you want to create your storyboard.

Where is the storyboard Xcode?

Accessing the Storyboard Select this file in the project navigator panel to view the storyboard canvas as illustrated in Figure 25 1. The view displayed on the canvas is the view for the ViewController class created for us by Xcode when we selected the Single View Application template.


2 Answers

I also got this problem and finally I solved this by following procedure:

  1. Open XXXXXX.storyboard
  2. Open Identity and Type tab in your right view of Xcode.
  3. Set the value of Development in Document Versioning to "Xcode 4.2" (my default value is "Default Version (Xcode 4.1)".
  4. Change the value of Deployment from Project SDK Version (iOS 5.0) to iOS 5.0, then back to Project SDK Version (iOS 5.0)

Rebuild the project and the error should be resolved.

like image 183
cotton5415 Avatar answered Sep 21 '22 01:09

cotton5415


The solution that worked for me was just to delete the ~/Library/Developer/Xcode/DerivedData directory for my project.

like image 24
C Fraire Avatar answered Sep 21 '22 01:09

C Fraire