自从XCode 6.3 - > Nib无法加载 [英] Since XCode 6.3 -> Nib could not be loaded
问题描述
我今天将我的XCode从6.2更新到6.3。我调整了所有快速更改,但是当我运行应用程序时,我为每个尝试加载的NIB收到错误 ~ipad 或 ~iphone
。 (无法加载NIB)
I updated my XCode from 6.2 to 6.3 today. I adapted all the swift changes, but when I run the application, I get errors for every NIB I try to load that has ~ipad
or ~iphone
. (NIB could not be loaded)
没有像往常一样加载设备修改器的笔尖。如果我删除 ~iphone
或 ~ipad
,可以再次找到nib,但显然没有解决方案,因为它是一个通用应用程序。
Nibs that don't have that device modifier load as usual. If I remove the ~iphone
or ~ipad
, the nib can be found again, but obviously thats no solution, because it's an Universal App.
每个其他文件类型也是如此,我尝试通过代码加载,例如故事板。
Same goes for every other file type, that I try to load via code e.g. storyboards.
推荐答案
似乎与大小类有关。您不能在使用 ~iphone
/ ~ipad
设备修改器的文件中启用大小类 - Xcode 6.3:无法在捆绑中加载NIB
Seems to be related to size classes. You can't have size classes enabled in a file that uses the ~iphone
/ ~ipad
device modifier - Xcode 6.3: Could not load NIB in bundle
这篇关于自从XCode 6.3 - > Nib无法加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!