【问题标题】:App don't run on iOS 5, when target is iOS 5.0当目标是 iOS 5.0 时,应用程序不能在 iOS 5 上运行
【发布时间】:2013-01-10 01:14:44
【问题描述】:

我使用 iOS 6.0 SDK 制作了一个应用程序。我已将部署目标设置为 iOS 5.0。

当我在 iOS 6.0 模拟器中运行应用程序时,一切正常。 但是当我在 iOS 5.0 模拟器中运行该应用程序时,我看到一个黑色窗口,并且 Xcode 在输出中说:

2013-01-08 14:25:06.032 Feestweek[583:c07] Unknown class SASlideMenuStaticViewController in Interface Builder file.
2013-01-08 14:25:06.965 Feestweek[583:c07] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'The NIB data is invalid.'
*** First throw call stack:
(0x2159052 0x1f29d0a 0x2101a78 0x21019e9 0x14fd838 0x13a4e2c 0x13a53a9 0x150e5e2 0x13a55cb 0x1305a73 0x1305ce2 0x1305ea8 0x130cd9a 0x12ddbe6 0x12de8a6 0x12ed743 0x12ee1f8 0x12e1aa9 0x2043fa9 0x212d1c5 0x2092022 0x209090a 0x208fdb4 0x208fccb 0x12de2a7 0x12dfa9b 0x287d 0x27a5 0x1)
terminate called throwing an exception(lldb)

如何在 iOS 5 上运行我的应用程序?我使用故事板。

【问题讨论】:

标签: ios ios5 ios6


【解决方案1】:

取消选中 XIB 中的“使用自动布局”。 Xcode 4.5 默认为您添加到项目中的新 nib 文件启用此属性。取消选中自动布局复选框解决了问题

【讨论】:

  • 即使在干净并重新编译之后?
  • 你需要在storyboard的document下关闭它。然后在“Interface Builder Document”下的每个xib和每个控件上
  • 产品清洁,然后产品运行/构建
  • 在文档版本控制下的部署下,您还可以选择部署,它们也有“iOS的所有版本”
  • 您是否检查了每个视图、每个 uiview、uilabel、uiimage、控件、每个 xib 的每个控件,并确保 Autolayout 已关闭。
猜你喜欢
  • 1970-01-01
  • 2012-12-17
  • 2011-12-12
  • 1970-01-01
  • 1970-01-01
  • 2018-07-25
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多