Tag: sigabrt

iOS的Objective-C应用程序崩溃的原因不寻常

我的应用程序崩溃的错误代码:SIGABRT。 我做了大量的研究,并没有任何“SIGABRT解决scheme”有帮助。 这是在iOS模拟器上应用程序崩溃之后的控制台中的内容: Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UIViewController _loadViewFromNibNamed:bundle:] loaded the "ViewController" nib but the view outlet was not set.' 如果任何人都可以帮助我,这将是伟大的!

游戏中心领导委员会错误

我为游戏中心排行榜创build了这个代码,而且我总是得到Thread 1 signal Sigabrt 。 NSLOG总是这样说的: 2014-04-15 15:27:28.441 GameCenter[38225:60b] -[GKGameCenterViewController setLeaderboardDelegate:]: unrecognized selector sent to instance 0xb48dd90 2014-04-15 15:27:28.442 GameCenter[38225:60b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[GKGameCenterViewController setLeaderboardDelegate:]: unrecognized selector sent to instance 0xb48dd90' *** First throw call stack: 在我实现排行榜的代码截图下面: 或/请在这里看看这个问题: https : //stackoverflow.com/questions/23068184/game-center-leaderboard-doesnt-work-in-xcode

pushViewController无法在iOS 5上工作(iOS 6上的确定)

我有一个UINavigationController,在屏幕上显示几个button。 他们都只是使用该行: myViewController *newView = [[myViewController alloc] initWithNibName:@"myViewController" bundle:nil]; [[self navigationController] pushViewController:newView animated:YES]; 转换到下一个视图。 我有一个这样的视图控制器,但是导致在这个只在iOS 5上的线崩溃。它在iOS 6上完美的罚款。我感到困惑。 没有真正的细节崩溃。 这是一个强调main.m行的SIGABRT: exitStatus = UIApplicationMain( argc, argv, nil, NSStringFromClass([ApplicationDelegate class])); 我没有任何线索…

我怎么知道哪些代码行导致我的iOS应用程序在Xcode 9中崩溃

我在Xcode 9(Swift 4)中构build一个应用程序,甚至在完全加载之前崩溃。 我得到一个错误: Thread 1: Signal SIGABRT和libc++abi.dylib: terminating with uncaught exception of type NSException 。 我怎么知道哪一行代码是使用断点和debugging导致错误? 任何帮助,将不胜感激。 谢谢! (这里也是一个截图)

静态TableView获取NSRangeException

我有一个UITableViewController与静态单元格,当我运行应用程序,然后单击导致它的button,我在AppDelegate中获得一个SIGABRT信号。 我试图find未使用的网点,但它没有奏效。 这里是控制台日志: UITableViewController代码: import UIKit import os.log class SettingsTableViewController: UITableViewController { // MARK: Properties @IBOutlet weak var noteDisplayKindSwitch: UISwitch! override func viewDidLoad() { super.viewDidLoad() notedisplayKindSwitch.setOn(Settings._displaynotesAsNames, animated: false) } @IBAction func ChangeNoteDisplayKind(_ sender: UISwitch) { Settings._displayNotesAsNames = sender.isOn // MARK: – Table view data source override func numberOfSections(in tableView: UITableView) -> Int { return 2 […]

为什么当我select创build的button时,会收到SIGABRT信号?

我在swift 2中创build一个button ,当我select它,我得到信号SIGABRT和应用程序崩溃。 这里是代码: let button = UIButton()//(type: UIButtonType.System) as UIButton! button.setTitle("button", forState: .Normal) button.setTitleColor(UIColor.blueColor(), forState: .Normal) button.addTarget(self, action: "buttonPressed:", forControlEvents: UIControlEvents.TouchUpInside) button.frame = CGRectMake(100, 100, 100, 100) self.view.addSubview(button) func buttonPressed(sender: UIButton!) { print("ButtonIsSelected") } 它带我到AppDelegate.swift和NSLog的中间它说:无法识别的select器发送到实例…请帮助。 安东

我该如何解决这个SIGABRT错误与我的应用程序?

我目前正在为Xhone开发一个Xcode 4的应用程序,而且我在这个错误“线程1:程序接收到的信号:SIGABRT”中有com,这个错误在我的main.m代码中。 // // main.m // MyCard // // Created by Nazar Gren on 2/2/12. // Copyright (c) 2012 Nazar Gren. All rights reserved. // #import <UIKit/UIKit.h> #import "mycardAppDelegate.h" int main(int argc, char *argv[]) { @autoreleasepool { return UIApplicationMain(argc, argv, nil, NSStringFromClass([mycardAppDelegate class])); } } 我的错误出现在@autorelease池行下。 在debugging器中,我得到这个消息,“这通常意味着这个过程的另一个实例已经运行或挂在debugging器中。” 而这个错误只发生在我试图debugging我的应用程序。 我的应用程序甚至不运行。 谁能帮忙? 这将不胜感激。

为什么一个崩溃日志象征性而不是另一个?

我有XCode Organizer中iPhone应用程序的两个崩溃日志。 两者都在20分钟内发生在同一台设备上,运行相同的应用程序版本。 一个已经被象征化了,另一个没有。 非符号日志有types和代码: Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x00000000, 0x00000000 而象征性的日志有types和代码: Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x61656810 这足够的信息来解释为什么后者正确的象征,但前者不是?

了解iOS崩溃

我刚刚收到Crashlytics的第一份崩溃报告,并试图纠正这个问题。 不幸的是,只有在旧设备上运行的代码行,所以我不能在我的iPhone 6上testing它。 Crashlytics的崩溃报告突出了两个线程,第一个读取: Fatal Exception: NSInvalidArgumentException -[CABasicAnimation altitude]: unrecognized selector sent to instance 0x17734440 第二个是: Crashed: Map Update :: NSOperation 0x1a839470 SIGABRT ABORT at 0x316a3dfc 这两个线程的代码行是: let relativeAlt = mylocation.altitude – appDelegate.elevation 哪里: let mylocation = self.mapView.myLocation let appDelegate = (UIApplication.sharedApplication().delegate as AppDelegate) 我试图了解我在崩溃报告中读到的内容。 我看到它的方式不明白由于某种原因所做的altitude参考? 这对我来说没有意义,因为这个崩溃似乎发生在该应用程序已经运行了几分钟没有错误之后,突出显示的代码行可能在应用程序崩溃之前运行数百次。 这里真的发生了什么? 附加信息: 自写以来,我收到了另外的崩溃,我相信这是源于同一个问题: Crashed: Map Update :: NSOperation […]

:无法识别的select器发送到实例SIGABRT

我有这个代码试图在一个循环中运行一组简单的图像。 所有我在应用程序中是一个UIImageView在我的视图控制器的.h文件中声明: @property (strong, nonatomic) IBOutlet UIImageView *imageDisplay; 以下在我的.m文件的viewDidLoad方法中: NSMutableArray *imageView = [[NSMutableArray alloc] init]; [imageView addObject:[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"EyeAnim1.png"]]]; [imageView addObject:[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"EyeAnim2.png"]]]; [imageView addObject:[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"EyeAnim3.png"]]]; [imageView addObject:[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"EyeAnim4.png"]]]; [imageView addObject:[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"EyeAnim5.png"]]]; [imageView addObject:[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"EyeAnim6.png"]]]; [imageView addObject:[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"EyeAnim7.png"]]]; imageDisplay.animationImages = imageView; imageDisplay.animationDuration = […]