【问题标题】:What does internalconsistency mean?内部一致性是什么意思?
【发布时间】:2013-09-06 06:48:23
【问题描述】:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </var/mobile/Applications/C8CF9D6E-4B29-416B-8973-A6F18C0CE691/.app> (loaded)' with name 'BGCinemaScheduleCell''
*** First throw call stack:
(0x32d812a3 0x3aa2697f 0x32d811c5 0x34d26571 0x34d2e2b7 0x137e4d 0x13833f 0x1383fd 0x1b6b97 0x34dffdef 0x17218b 0x34bd454d 0x34bb9313 0x34bd07cf 0x34b8c803 0x34936d8b 0x34936929 0x3493785d 0x34937243 0x34937051 0x34936eb1 0x32d566cd 0x32d549c1 0x32d54d17 0x32cc7ebd 0x32cc7d49 0x3688b2eb 0x34bdd301 0xa1385 0x3ae5db20)
libc++abi.dylib: terminate called throwing an exception

好的,确实有一个名为 BGCinemaScheduleCell 的实际 XIB

我在这里遇到了这个错误:

-(void) vLoadMainBundle
{
    if ([self class] == [BGBaseTableViewCell class])
    {
        return;
    }

    NSString * className = NSStringFromClass([self class]);

    [[NSBundle mainBundle] loadNibNamed:className owner:self options:nil];
}

我不知道 NSInternalInconsistencyException 是什么意思。 className 的值为 loadNibNamed

【问题讨论】:

标签: objective-c xcode4.5


【解决方案1】:

事实证明,xib 没有被复制到 https://stackoverflow.com/a/5646337/2027232 中的答案会起作用的捆绑资源中。

下一个问题是为什么在我创建 xib 时没有将其复制到捆绑资源中。

【讨论】:

  • 有时 XCode 决定在添加新类/文件时取消勾选“目标”框。
猜你喜欢
  • 2013-05-21
  • 2018-05-24
  • 1970-01-01
  • 2019-06-21
  • 1970-01-01
  • 1970-01-01
  • 2011-04-21
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多