Could not load NIB in bundle: 'NSBundle'

后端 未结 12 1537
礼貌的吻别
礼貌的吻别 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:05

    One of your NIB file is missing from project, add the required NIB file:

    In Build Phases

    1. expand Copy Bundle Resources
    2. click + at bottom
    3. add the required NIB file.

    Clean your build by Shift+Cmd+K, then run.

    P.S. Also make sure to use exact spelling of NIB file while calling initWithNibName:@"ViewNameController"

    Probably, you have named your NIB in a call by lowercase letters or you may have also included extension .xib which is not required.

提交回复
热议问题