SIGABRT启动 [英] SIGABRT on startup

查看:59
本文介绍了SIGABRT启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我根本不明白这一点.我发现的是一些论坛上的帖子,上面写着我不知道如何解决此问题".我开始了一个简单的看法.然后,我添加了ASIHTTPRequest以使用对php脚本的请求调用与数据库进行通信.在编译之前,我必须添加Reachability.h.当我实际尝试运行它时,我得到的只是模拟器上的空白屏幕,并且主要是XCode中的SIGABRT错误.

I simply don't understand this. All I find is a number of forum posts that say "I don't know how to fix this". I started out a simple view. I then added ASIHTTPRequest to communicate with a database using a request call to a php script. I had to add Reachability.h before it would compile. When I actually tried to run it, all I got was a blank screen on the simulator, and the SIGABRT error in XCode in the main.

以下是输出:

GNU gdb 6.3.50-20050815 (Apple version gdb-1518) (Sat Feb 12 02:52:12 UTC 2011)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin".sharedlibrary apply-load-rules all
Attaching to process 4930.
2011-08-22 21:47:15.996 ViewInfo[4930:207] -[ViewInfoViewController tableView:numberOfRowsInSection:]: unrecognized selector sent to instance 0x4c23b80
2011-08-22 21:47:15.999 ViewInfo[4930:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[ViewInfoViewController tableView:numberOfRowsInSection:]: unrecognized selector sent to instance 0x4c23b80'
*** Call stack at first throw:
(
    0   CoreFoundation                      0x010d05a9 __exceptionPreprocess + 185
    1   libobjc.A.dylib                     0x01224313 objc_exception_throw + 44
    2   CoreFoundation                      0x010d20bb -[NSObject(NSObject) doesNotRecognizeSelector:] + 187
    3   CoreFoundation                      0x01041966 ___forwarding___ + 966
    4   CoreFoundation                      0x01041522 _CF_forwarding_prep_0 + 50
    5   UIKit                               0x007792b7 -[UISectionRowData refreshWithSection:tableView:tableViewRowData:] + 1834
    6   UIKit                               0x00776d88 -[UITableViewRowData numberOfRows] + 108
    7   UIKit                               0x0062a677 -[UITableView noteNumberOfRowsChanged] + 132
    8   UIKit                               0x00637708 -[UITableView reloadData] + 773
    9   UIKit                               0x00634844 -[UITableView layoutSubviews] + 42
    10  QuartzCore                          0x01ed6a5a -[CALayer layoutSublayers] + 181
    11  QuartzCore                          0x01ed8ddc CALayerLayoutIfNeeded + 220
    12  QuartzCore                          0x01e7e0b4 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 310
    13  QuartzCore                          0x01e7f294 _ZN2CA11Transaction6commitEv + 292
    14  UIKit                               0x005be9c9 -[UIApplication _reportAppLaunchFinished] + 39
    15  UIKit                               0x005bee83 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 690
    16  UIKit                               0x005c9617 -[UIApplication handleEvent:withNewEvent:] + 1533
    17  UIKit                               0x005c1abf -[UIApplication sendEvent:] + 71
    18  UIKit                               0x005c6f2e _UIApplicationHandleEvent + 7576
    19  GraphicsServices                    0x0188e992 PurpleEventCallback + 1550
    20  CoreFoundation                      0x010b1944 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 52
    21  CoreFoundation                      0x01011cf7 __CFRunLoopDoSource1 + 215
    22  CoreFoundation                      0x0100ef83 __CFRunLoopRun + 979
    23  CoreFoundation                      0x0100e840 CFRunLoopRunSpecific + 208
    24  CoreFoundation                      0x0100e761 CFRunLoopRunInMode + 97
    25  UIKit                               0x005be7d2 -[UIApplication _run] + 623
    26  UIKit                               0x005cac93 UIApplicationMain + 1160
    27  ViewInfo                            0x000020d9 main + 121
    28  ViewInfo                            0x00002055 start + 53
)
terminate called after throwing an instance of 'NSException'
Current language:  auto; currently objective-c
(gdb) 

推荐答案

确定要复制正确的输出吗?粘贴的输出显示您添加了一个对象作为UITableViewController的委托,但是没有在以下方法中实现强制性的方法:

Are you sure you copied the right output? The pasted output shows that you added an object as the delegate of a UITableViewController, but without implementing the obligatory methods in:

-[ViewInfoViewController tableView:numberOfRowsInSection:]:

-[ViewInfoViewController tableView:numberOfRowsInSection:]:

除此之外,而且缺少帮助您的代码,我唯一想到的就是您没有添加必需的ASIHTTP框架,或者您安装了错误的可达性(ASI带有它自己的可达性,在另一个文件夹中,它不同于Apple的Reachability,btw).

Aside from that, and the lack of code to help you out, the only thing I can think of is that you didn't add the required Frameworks for ASIHTTP, or you installed the wrong reachability (ASI comes with it's own reachability, inside another folder, it is different from Apple's Reachability, btw).

这篇关于SIGABRT启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆