Xcode 6.3: Could not load NIB in bundle

后端 未结 4 1653
礼貌的吻别
礼貌的吻别 2020-12-06 16:15

When compiled using Xcode 6.3 (iOS 8.3 SDK), some nib filenames end up with an extra ~ipad or ~iphone in certain circumstances. For example,

4条回答
  •  没有蜡笔的小新
    2020-12-06 16:46

    To fix this, uncheck “Use Size Classes” in any affected documents in Interface Builder.

    This appears to be a bug in the version of ibtool included with Xcode 6.3 (and the iOS 8.3 SDK). It's happening in the following circumstances:

    • You have a device-specific input file *~(iphone|ipad).xib with size classes enabled.
    • Your deployment target is anything older than iOS 8.0.

    I was able to reproduce the problem on the command line:

    xcrun --sdk iphonesimulator8.3 ibtool --minimum-deployment-target 7.0 --compile ViewController~ipad.nib ViewController~ipad.xib
    

    If you're seeing the same behavior, please duplicate this radar. This appears to be fixed in the latest Xcode 6.4 beta.

提交回复
热议问题