Ios 由于未捕获异常而终止应用程序';n内部一致性异常';名称为';覆盖视图';

Ios 由于未捕获异常而终止应用程序';n内部一致性异常';名称为';覆盖视图';,ios,swift,xcode,koloda,Ios,Swift,Xcode,Koloda,我打算通过Podfile在新创建的swift xcode项目中使用自定义视图。在pod安装、在Main.storyboard中创建KolodaView并成功构建后,它会在运行时报告异常,如下所示: 2016-08-20 09:44:38.918 MsgNotFree[25760:2220650] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not

我打算通过
Podfile
在新创建的swift xcode项目中使用自定义视图。在
pod安装
、在
Main.storyboard
中创建
KolodaView
并成功构建后,它会在运行时报告异常,如下所示:

2016-08-20 09:44:38.918 MsgNotFree[25760:2220650] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </Users/jasonzhu/Library/Developer/CoreSimulator/Devices/DDE42B9D-6304-4552-AD30-A1BFA3A7B3E0/data/Containers/Bundle/Application/D1282CEB-9914-4C37-BCD2-DC05675C9FD1/MsgNotFree.app> (loaded)' with name 'OverlayView''
*** First throw call stack:
(
    0   CoreFoundation                      0x000000010a227d85 __exceptionPreprocess + 165
    1   libobjc.A.dylib                     0x000000010c8d4deb objc_exception_throw + 48
    2   CoreFoundation                      0x000000010a227cbd +[NSException raise:format:] + 205
    3   UIKit                               0x000000010b720c89 -[UINib instantiateWithOwner:options:] + 499
    4   UIKit                               0x000000010b723415 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 223
    5   MsgNotFree                          0x0000000109eedd90 _TFC10MsgNotFree19FirstViewController6kolodafTCS_10KolodaView25viewForCardOverlayAtIndexSu_GSqCS_11OverlayView_ + 368
    6   MsgNotFree                          0x0000000109eedf92 _TToFC10MsgNotFree19FirstViewController6kolodafTCS_10KolodaView25viewForCardOverlayAtIndexSu_GSqCS_11OverlayView_ + 66
    7   MsgNotFree                          0x0000000109eee918 _TTDFC10MsgNotFree19FirstViewController6kolodafTCS_10KolodaView25viewForCardOverlayAtIndexSu_GSqCS_11OverlayView_ + 56
    8   MsgNotFree                          0x0000000109eee085 _TTWC10MsgNotFree19FirstViewControllerS_20KolodaViewDataSourceS_FS1_6kolodafTCS_10KolodaView25viewForCardOverlayAtIndexSu_GSqCS_11OverlayView_ + 53
    9   Koloda                              0x0000000109ff14f5 _TFC6Koloda10KolodaView13configureCardfTCS_17DraggableCardView7atIndexSu_T_ + 501
    10  Koloda                              0x0000000109ff15b2 _TToFC6Koloda10KolodaView13configureCardfTCS_17DraggableCardView7atIndexSu_T_ + 66
    11  Koloda                              0x0000000109ff1183 _TFC6Koloda10KolodaView17createCardAtIndexfTSu5frameGSqVSC6CGRect__CS_17DraggableCardView + 611
    12  Koloda                              0x0000000109ff292b _TFC6Koloda10KolodaViewP33_DFF55D12D516409CF60937DD60F8B8969setupDeckfT_T_ + 955
    13  Koloda                              0x0000000109ff1e60 _TFC6Koloda10KolodaViewW10dataSourceXwGSqPS_20KolodaViewDataSource__ + 32
    14  Koloda                              0x0000000109ff1f60 _TFC6Koloda10KolodaViews10dataSourceXwGSqPS_20KolodaViewDataSource__ + 160
    15  MsgNotFree                          0x0000000109eec73e _TFC10MsgNotFree19FirstViewController11viewDidLoadfT_T_ + 398
    16  MsgNotFree                          0x0000000109eec802 _TToFC10MsgNotFree19FirstViewController11viewDidLoadfT_T_ + 34
    17  UIKit                               0x000000010b4f3984 -[UIViewController loadViewIfRequired] + 1198
    18  UIKit                               0x000000010b4f3cd3 -[UIViewController view] + 27
    19  UIKit                               0x000000010b5571bc -[UITabBarController transitionFromViewController:toViewController:transition:shouldSetSelected:] + 502
    20  UIKit                               0x000000010b556130 -[UITabBarController transitionFromViewController:toViewController:] + 59
    21  UIKit                               0x000000010b551f41 -[UITabBarController _setSelectedViewController:] + 377
    22  UIKit                               0x000000010b551db7 -[UITabBarController setSelectedViewController:] + 234
    23  UIKit                               0x000000010b408680 +[UIView(Animation) performWithoutAnimation:] + 65
    24  UIKit                               0x000000010b54bddc -[UITabBarController _selectDefaultViewControllerIfNecessaryWithAppearanceTransitions:] + 344
    25  UIKit                               0x000000010b54d5df -[UITabBarController viewWillAppear:] + 193
    26  UIKit                               0x000000010b4f92bd -[UIViewController _setViewAppearState:isAnimating:] + 710
    27  UIKit                               0x000000010b4f9958 -[UIViewController __viewWillAppear:] + 149
    28  UIKit                               0x000000010b401255 -[UIView(Hierarchy) _willMoveToWindow:withAncestorView:] + 633
    29  UIKit                               0x000000010b40fc9e -[UIView(Internal) _addSubview:positioned:relativeTo:] + 481
    30  UIKit                               0x000000010b3ca29a -[UIWindow addRootViewControllerViewIfPossible] + 803
    31  UIKit                               0x000000010b3ca69d -[UIWindow _setHidden:forced:] + 282
    32  UIKit                               0x000000010b3dc180 -[UIWindow makeKeyAndVisible] + 42
    33  UIKit                               0x000000010b350ed9 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 4131
    34  UIKit                               0x000000010b357568 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1769
    35  UIKit                               0x000000010b354714 -[UIApplication workspaceDidEndTransaction:] + 188
    36  FrontBoardServices                  0x000000010d40f8c8 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 24
    37  FrontBoardServices                  0x000000010d40f741 -[FBSSerialQueue _performNext] + 178
    38  FrontBoardServices                  0x000000010d40faca -[FBSSerialQueue _performNextFromRunLoopSource] + 45
    39  CoreFoundation                      0x000000010a14d301 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    40  CoreFoundation                      0x000000010a14322c __CFRunLoopDoSources0 + 556
    41  CoreFoundation                      0x000000010a1426e3 __CFRunLoopRun + 867
    42  CoreFoundation                      0x000000010a1420f8 CFRunLoopRunSpecific + 488
    43  UIKit                               0x000000010b353f21 -[UIApplication _run] + 402
    44  UIKit                               0x000000010b358f09 UIApplicationMain + 171
    45  MsgNotFree                          0x0000000109eec272 main + 114
    46  libdyld.dylib                       0x00000001112d892d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
2016-08-20 09:44:38.918 MsgNotFree[25760:2220650]***由于未捕获的异常“NSInternalInconsistencException”而终止应用程序,原因:“无法在捆绑包中加载NIB:”名为“OverlayView”的NSBundle(loaded)“
***第一次抛出调用堆栈:
(
0 CoreFoundation 0x000000010a227d85例外预处理+165
1 libobjc.A.dylib 0x000000010c8d4deb objc_异常_抛出+48
2 CoreFoundation 0x000000010a227cbd+[N异常提升:格式:][205
3 UIKit 0x000000010b720c89-[UINib实例化所有者:选项:][499
4 UIKit 0x000000010b723415-[NSBundle(UINSBUNDLEADTIONS)LOADNIBNAME:所有者:选项:][223
5 MsgNotFree 0x0000000109eedd90 _tfc10msgnotfree19第一视图控制器6kolodaftcs 10kolodaview25用于卡片覆盖索引su_GSqCS_11覆盖视图+368
6 MSGNOTFRE 0x0000000109eedf92 \u TTOFC10MSGNOTFRE19第一视图控制器6KOLODAFTCS \u 10KOLODAVIEW25用于CardOverlayIndexu\u GSqCS \u 11 OverlayView\u66
7 MsgNotFree 0x0000000109eee918_TTDFC10Msgnotfree19第一视图控制器6Kolodaftcs_10Colodaview25视图用于CardOverlayIndexu_GSqCS_11 OverlayView_+56
8 MSGNOTFRE 0x0000000109eee085 \u TTWC10MSGNOTFREE19第一视图控制器\u 20KOLODAVIEW数据源\u FS1\u 6kolodafTCS\u 10KOLODAVIEW25用于卡片覆盖索引的视图\u GSqCS\u 11覆盖视图\u53
9科洛达0x0000000109ff14f5\u TFC6科洛达10KOLODAVIEW13配置卡式FTCS\u 17DragableCardView7AtIndexu\u+501
10科洛达0x0000000109ff15b2(科洛达10KOLODAVIEW13配置卡式FTCS)(可拖动卡式视图)在索引中
11科洛达0x0000000109ff1183 TFC6科洛达10KOLODAVIEW17创建卡片索引5框架GSQVSC6CGRECT uuu CS_17;DragableCardView+611
12科洛达0x0000000109ff292b_TFC6科洛达10KOLODAVIEWP33_DFF55D12D516409CF60937DD60F8B8969设置甲板FT_+955
13科洛达0x0000000109ff1e60\u TFC6科洛达10KOLODAVIEWW10数据源xwgsqps\u 20KOLODAVIEW数据源
14科洛达0x0000000109ff1f60_TFC6科洛达10KOLODAVIEWS10数据源XWGSQPS_20KOLODAVIEW数据源__+160
15 MsgNotFree 0x0000000109eec73e\u tfc10msgnotfree19第一视图控制器11viewdidloadft\u T\u+398
16 MsgNotFree 0x0000000109eec802\u TTOFC10Msgnotfree19第一视图控制器11视图加载ft\u T\u34
17 UIKit 0x000000010b4f3984-[UIViewController loadViewIfRequired]+1198
18 UIKit 0x000000010b4f3cd3-[UIViewController视图]+27
19 UIKit 0x000000010B557BC-[UITabBarController从VIEWCONTROLLER:转换为VIEWCONTROLLER:转换:shouldSetSelected:+502
20 UIKit 0x000000010b556130-[UITabBarController从VIEWCONTROLLER:转换到VIEWCONTROLLER::+59
21 UIKit 0x000000010b551f41-[UITabBarController\u SETSELECTED VIEW CONTROLLER:+377
22 UIKit 0x000000010b551db7-[UITabBarController SETSELECTED VIEW CONTROLLER:+234
23 UIKit 0x000000010b408680+[UIView(动画)性能无动画:+65
24 UIKit 0x000000010b54bddc-[UITabBarController\u选择默认视图控制器Fnecessary with appearancetransitions:+344
25 UIKit 0x000000010B54Df-[UITabBarController VIEW将出现:][193
26 UIKit 0x000000010b4f92bd-[UIViewController\u setViewAppearState:isAnimating:+710
27 UIKit 0x000000010b4f9958-[UIViewController\uuu视图将出现:][149
28 UIKit 0x000000010b401255-[UIView(层次结构)\您将移动到Windows:withAncestorView:+633
29 UIKit 0x000000010b40fc9e-[UIView(内部)\ U addSubview:定位:相对位置:][481
30 UIKit 0x000000010b3ca29a-[UIWindow AddRootViewControllerServiceWifPossible]+803
31 UIKit 0x000000010b3ca69d-[UIWindow\u setHidden:强制:][282
32 UIKit 0x000000010b3dc180-[UIWindow makeKeyAndVisible]+42
33 UIKit 0x000000010b350ed9-[UIApplication\u callInitializationDelegatesForMainScene:transitionContext:+4131
34 UIKit 0x000000010b357568-[UIApplication\u在主场景中运行:transitionContext:completion:+1769
35 UIKit 0x000000010b354714-[UIApplication WorkspaceDiEndTransaction:][188
36 FrontBoardServices 0x000000010d40f8c8 uu FBSSERIALQUEUE u正在调用u OUT u到u块uu+24
37 FrontBoardServices 0x000000010d40f741-[FBSSerialQueue\u performNext]+178
38 FrontBoardServices 0x000000010d40faca-[FBSSerialQueue _performNextFromRunLoopSource]+45
39 CoreFoundation 0x000000010a14d301\uuuCFRUNLOOP\u正在调用\uU OUT\uU到\uU A\uU源0\uU执行\uU功能\uuuu+17
40 CoreFoundation 0x000000010a14322c\uu CFRunLoopDoSources0+556
41 CoreFoundation 0x000000010a1426e3\uuu CFRunLoopRun+867
42科里福恩