使用Xcode 6.3 iOS 8.3 iPhone 6+中损坏的设备修饰符加载xib [英] Loading xib with device modifier broken in Xcode 6.3 iOS 8.3 iPhone 6+

查看:106
本文介绍了使用Xcode 6.3 iOS 8.3 iPhone 6+中损坏的设备修饰符加载xib的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

2015-04-08 22:15:24.756 WSL[391:43257] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </private/var/mobile/Containers/Bundle/Application/0FA355FC-B3D0-4B73-94F2-7E1D09B8B178/WSL.app> (loaded)' with name 'myXibName''
*** First throw call stack:
(0x1853182d8 0x196b440e4 0x185318218 0x18a1783ac 0x189e961b0 0x189ed1e10 0x1001020c4 0x10028db40 0x18a059a68 0x18a04d890 0x189e39268 0x189d55760 0x18969de1c 0x189698884 0x189698728 0x189697ebc 0x189697c3c 0x189d4c56c 0x1852d02a4 0x1852cd230 0x1852cd610 0x1851f92d4 0x18ea0f6fc 0x189dbefac 0x10019942c 0x1971c2a08)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb) 

我有两个文件:

  • myXibName~iphone.xib
  • myXibName~ipad.xib
  • myXibName~iphone.xib
  • myXibName~ipad.xib

这可以在升级前使用,并且可以在模拟器中使用,但是在通过Xcode直接运行到iPhone 6+时不能使用.我尝试了通常的卸载,重新启动Xcode和设备等.

This worked pre-upgrade, and works in the simulator, but not when run directly to iPhone 6+ via Xcode. I've tried the usual uninstall, restart Xcode and device etc.

推荐答案

删除~iphone.xib作品.也许他们悄悄地放弃了对不必要的扩展的支持?

Dropping the ~iphone.xib works. maybe they quietly dropped support for an unnecessary extension?

修改

不是-不尊重〜ipad扩展名,它是直接从xib加载而没有设备修饰符

Nope - the ~ipad extension isn't being respected now it's exclusively loading from the xib without the device modifier

这篇关于使用Xcode 6.3 iOS 8.3 iPhone 6+中损坏的设备修饰符加载xib的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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