Could not load NIB in bundle: 'NSBundle'

后端 未结 12 1502
礼貌的吻别
礼貌的吻别 2020-12-03 07:27

What is the error listed below?

2011-02-23 21:24:12.218 Success[7238:207] * Terminating app due to uncaught exception \'NSInternalInconsisten

相关标签:
12条回答
  • 2020-12-03 08:09

    Are there any warnings related to the NIB? This is usually do to an error in the NIB file (such as incorrect type of NIB).

    Right click on the file and click "Get Info" to verify that the type is what you would expect.

    0 讨论(0)
  • 2020-12-03 08:09

    I Have Same Problem Just Follow Steps.

    1.Copy your Project In Another Place.

    2.Copy your NIB File Which Crash app.

    3.Just Change Name

    Ex. Old File Demo.xib Than Copy And Change Name DemoNew.xib

    My Code is Below

    Old Code

    Demo *controller = [[Demo alloc]initWithNibName:@"Demo" bundle:nil];
    

    I Just Change Name

    Demo *controller = [[Demo alloc]initWithNibName:@"DemoNew" bundle:nil];
    

    its working for me.

    0 讨论(0)
  • 2020-12-03 08:11

    Please make sure your nib/xib file is included in the corresponding Target Membership.

    0 讨论(0)
  • 2020-12-03 08:12

    An other possible issue: you are using Base Localization on iOS 5 (caution, it kinda work on the iOS Simulator, but not on a device), but it is supported only starting from iOS 6.

    For more info, see: Could not load nib in bundle base internationalization

    0 讨论(0)
  • 2020-12-03 08:17

    In your Build Settings, Add Architecture =>> armv6 and armv7

    I just removed my error using this

    0 讨论(0)
  • 2020-12-03 08:17

    In my case was next:

    I loaded in code XIB with name "??????Ipad" but XIB filename was "??????IPad"

    0 讨论(0)
提交回复
热议问题