How to create a new Xcode 5 project that is backwards compatible with iOS 5.0? - Getting missing Storyboard error

情到浓时终转凉″ 提交于 2019-12-22 18:29:47

问题


Our client requires an iPad/iPhone app that covers iOS 5.0 - iOS 7.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

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:

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

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'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

Any thoughts?


回答1:


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



来源:https://stackoverflow.com/questions/19381522/how-to-create-a-new-xcode-5-project-that-is-backwards-compatible-with-ios-5-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!