如何创建一个向后兼容iOS 5.0的新Xcode 5项目? - 错过故事板错误 [英] How to create a new Xcode 5 project that is backwards compatible with iOS 5.0? - Getting missing Storyboard error

查看:110
本文介绍了如何创建一个向后兼容iOS 5.0的新Xcode 5项目? - 错过故事板错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的客户需要一个涵盖iOS 5.0 - iOS 7.0的iPad / iPhone应用程序。

Our client requires an iPad/iPhone app that covers iOS 5.0 - iOS 7.0.


  1. 我在Xcode 5中创建了一个新项目

  2. 在构建设置中,我将架构更改为标准标准 armv7 armv7s

  3. 我点击了Main.storyboard并确保界面构建器设置为:
    打开:默认(5.0)
    构建:iOS 5及更高版本
    查看方式:iOS 6.1及更早版本

  4. 在部署信息中,我将部署目标更改为5.0

  1. I created a new project in Xcode 5
  2. In build settings I changed the architecture to standard Standard armv7, armv7s
  3. I clicked on the Main.storyboard and made sure that the interface builder settings were: Opens in: Default (5.0) Builds for: iOS 5 and Later View as: iOS 6.1 and Earlier
  4. In Deployment Info I changed the Deployment Target to 5.0

我现在可以看到我的旧模拟器了,但是在iOS 5.0模拟器中运行一个空的单个应用程序项目给了我这个错过的故事板错误很多报告:

I can see my old simulators now, but running an empty single application project in iOS 5.0 simulator gives me this missing storyboard errors that many have reported:

由于未捕获的异常终止应用程序' NSInvalidArgumentException ',原因:'找不到名为的storyboard捆绑NSBundle中的'Main'

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Could not find a storyboard named 'Main' in bundle NSBundle

我可以在复制捆绑资源中看到红色的缺失故事板 - 这里没有解决方案,即 deleti纳克/重新添加/清洁/编译。我注意到在Interface Builder上单击Localization-English框会使红色文件看起来正常,但是当我运行模拟器时,我仍然会收到此错误。

I can see a red "missing" storyboard in "Copy Bundle Resources" - no solutions on here work, i.e. deleting/re-adding/clean/compile. I noticed that clicking "Localization-English" box on Interface Builder make the red file look normal, but I still get this missing error when I run the simulator.

I'我认为唯一的方法是在Xcode 4版本中使用iOS 5兼容代码创建一个项目,然后在iOS 7.0中测试并对其进行修改

I'm thinking that the only way is to create a project in Xcode 4 build with iOS 5 compatible code and just test and make amendments to it later with iOS 7.0

有什么想法吗?

推荐答案

选择Main.storyboard并对文件检查器中的本地化部分进行以下更改。

Select Main.storyboard and make the following changes to Localization section in File Inspector.

这篇关于如何创建一个向后兼容iOS 5.0的新Xcode 5项目? - 错过故事板错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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