iOS5 故事板错误:故事板在 iOS 4.3 及更早版本上不可用 [英] iOS5 Storyboard error: Storyboards are unavailable on iOS 4.3 and prior

查看:19
本文介绍了iOS5 故事板错误:故事板在 iOS 4.3 及更早版本上不可用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用故事板构建了一个小应用,并且运行良好.就在最终测试之前,我决定尝试一下,看看它是否能在 iOS 4.3 上运行.我在项目设置里点了灰色的5.0,选择了4.3.

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:

故事板在 iOS 4.3 及更早版本上不可用

Storyboards are unavailable on iOS 4.3 and prior

iPhone 和 iPad 故事板都告诉我这一点.

Both the iPhone and iPad storyboards tell me that.

当我切换回 iOS5 目标时,我仍然不断从两个故事板中收到这些错误,并且产品无法构建的问题!我检查了:项目设置中的 iOS 部署目标是 5.0目标应用程序部署目标是 5.0构建设置使用 iOS 5.0 SDK

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?

更新:即使在进行清理后,我仍然收到此错误.我将 Schemes 中的调试器更改为LLDB"并进行了额外的清理,项目现在可以构建和编译

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

推荐答案

我也遇到了这个问题,最后我按照以下步骤解决了:

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

  1. 打开XXXXXX.storyboard
  2. 在 Xcode 的右侧视图中打开 Identity and Type 选项卡.
  3. 在 Document Versioning 中将 Development 的值设置为Xcode 4.2"(我的默认值为Default Version (Xcode 4.1)".
  4. 将 Deployment 的值从 Project SDK Version (iOS 5.0) 更改为 iOS 5.0,然后再改回 Project SDK Version (iOS 5.0)
  5. 重新构建项目,应该可以解决错误.

    Rebuild the project and the error should be resolved.

    这篇关于iOS5 故事板错误:故事板在 iOS 4.3 及更早版本上不可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆