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

前端 未结 18 1188
礼貌的吻别
礼貌的吻别 2020-12-02 09:33

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

18条回答
  •  -上瘾入骨i
    2020-12-02 10:11

    While other solutions helped me, they didn't work 100% of the time. I don't know enough about XCode to know how reliable this solution is, but at least it worked for me so you can try it in your project.

    In the left hand side of Xcode, open the project navigator. Click the top item, which is your project. In the panel immediately to the right, you'll see a choice to choose between your project and its targets. Click the project, and then in the panel to the right, under the "Info" tab, set "Command-line builds use" to Debug (in my two projects where I was having the error, both were set to Release).

    A picture is probably easiest:

    Picture from Xcode

    Another idea: Open another project with storyboards in Xcode and try to run that. If it succeeds, you can come back to the current project and it should build. I think this clearly indicates a bug in Xcode.

提交回复
热议问题