每当我运行我的应用程序时,应用程序崩溃并显示“信号1:程序接收信号SIGABRT”

时间:2011-09-29 11:36:10

标签: iphone

在控制台上显示....

  

2011-09-29 17:06:39.564 Project AddressBook [925:207] *终止   应用程序由于未捕获的异常'NSInternalInconsistencyException',   原因:'无法在捆绑中加载NIB:'NSBundle    (加载)'名字'前夕''   * 在第一次投掷时调用堆栈:(0 CoreFoundation
  0x00e655a9 exceptionPreprocess + 185 1 libobjc.A.dylib
  0x00fb9313 objc_exception_throw + 44 2 CoreFoundation
  0x00e1def8 + [NSException raise:format:arguments:] + 136 3
  CoreFoundation 0x00e1de6a +​​ [NSException   提升:格式:] + 58 4 UIKit
  0x005500fa - [UINib instantiateWithOwner:options:] + 2024 5 UIKit
  0x00551ab7 - [NSBundle(UINSBundleAdditions)   loadNibNamed:owner:options:] + 168 6 UIKit
  0x00407628 - [UIViewController _loadViewFromNibNamed:bundle:] + 70 7
  UIKit 0x00405134 - [UIViewController   loadView] + 120 8 UIKit 0x0040500e    - [UIViewController视图] + 56 9 UIKit
  0x00406a3d - [UIViewController viewControllerForRotation] + 63 10   UIKit 0x00402988 - [UIViewController   _visibleView] + 90 11 UIKit 0x006a493c    - [UIClientRotationContext   initWithClient:toOrientation:duration:andWindow:] + 354 12 UIKit
  0x0037c81e - [UIWindow   _setRotatableClient:toOrientation:updateStatusBar:duration:force:] +   954 13 UIKit 0x00604619    - [UIWindowController   过渡:fromViewController:toViewController:目标:didEndSelector:]   + 1381 14 UIKit 0x0040965d    - [UIViewController presentModalViewController:withTransition:] + 3478     15项目地址簿0x000032cb - [主页事件:] +   155 16 UIKit 0x003554fd    - [UIApplication sendAction:to:from:forEvent:] + 119 17 UIKit
  0x003e5799 - [UIControl sendAction:to:forEvent:] + 67 18 UIKit
  0x003e7c2b - [UIControl(Internal)_sendActionsForEvents:withEvent:] +   527 19 UIKit 0x003e67d8 - [UIControl   touchesEnded:withEvent:] + 458 20 UIKit
  0x00379ded - [UIWindow _sendTouchesForEvent:] + 567 21 UIKit
  0x0035ac37 - [UIApplication sendEvent:] + 447 22 UIKit
  0x0035ff2e _UIApplicationHandleEvent + 7576 23 GraphicsServices
  0x01723992 PurpleEventCallback + 1550 24 CoreFoundation
  0x00e46944 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION
  + 52 25 CoreFoundation 0x00da6cf7   __CFRunLoopDoSource1 + 215 26 CoreFoundation
  0x00da3f83 __CFRunLoopRun + 979 27 CoreFoundation
  0x00da3840 CFRunLoopRunSpecific + 208 28 CoreFoundation
  0x00da3761 CFRunLoopRunInMode + 97 29图形服务
  0x017221c4 GSEventRunModal + 217 30图形服务
  0x01722289 GSEventRun + 115 31 UIKit
  0x00363c93 UIApplicationMain + 1160 32项目地址簿
  0x00002828 main + 102 33项目地址簿
  0x000027b9 start + 53)在抛出一个实例后终止调用   'NSException'sharedlibrary apply-load-rules all当前语言:   汽车;目前客观

请帮助我!!

1 个答案:

答案 0 :(得分:1)

  

由于未捕获的异常'NSInternalInconsistencyException'而终止应用,原因:'无法在包中加载NIB:'NSBundle(已加载)',名称为'eve''

你的问题正是如此。您尝试加载名为'eve'的nib文件。

你可以在某处调用类似的东西:

VC *aVC = [[[VC alloc] initWithNibName:@"eve" bundle:nil] autorelease];

Xcode 4应该在遇到该异常时向您显示调用堆栈。在源窗口中,它应该显示它发生的代码。这条线上方有三四条线是你的问题。