这是登录组织者
ocesses Name rpages recent_max [reason] (state) MobileMail 1557 1557 [vm] (resume) (continuous) MobilePhone 1479 1479 [vm] (resume) (continuous) tccd 318 320 [vm] (daemon) Testare 2293 2293 [vm] (frontmost) (resume) ptpd 1350 1350 (daemon) dataaccessd 1589 1589 (daemon) aosnotifyd 512 512 (daemon) mediaserverd 12077 12077 (daemon) assetsd 1170 1170 (daemon) wifid 773 773 (daemon) iaptransportd 266 266 (daemon) profiled 592 592 (daemon) locationd 1373 1373 (daemon) syslogd 185 185 (daemon) SpringBoard 7838 7838 backboardd 5776 5776 (daemon) BTServer 498 498 (daemon) imagent 668 668 (daemon) configd 741 741 (daemon) lockdownd 353 353 (daemon) powerd 192 192 (daemon) mDNSResponder 294 294 (daemon) fairplayd.N42 166 166 (daemon) UserEventAgent 720 720 (daemon) securityd 159 160 (daemon) amfid 219 219 (daemon) debugserver 0 0 (daemon) syncdefaultsd 459 459 (daemon) lockbot 475 475 (daemon) springboardservi 0 0 (daemon) CVMServer 89 89 (daemon) notification_pro 161 161 (daemon) afcd 157 157 (daemon) filecoordination 214 214 (daemon) distnoted 141 141 (daemon) apsd 438 438 (daemon) aggregated 109 109 (daemon) networkd 215 215 (daemon) fseventsd 277 277 (daemon) CommCenter 1760 1760 (daemon) notifyd 226 226 (daemon) ReportCrash 331 333 (daemon) **End**
没有线程高位。 这是代码
void (^assetEnumerator)(ALAsset *, NSUInteger, BOOL *) = ^(ALAsset *result, NSUInteger index, BOOL *stop) { if(result != NULL) { NSLog(@"See Asset: %@", result); NSLog(@"Index: %d", index); ALAssetRepresentation *rep = result.defaultRepresentation; NSLog(@"URL: %@", rep.url); UIImage *image = [UIImage imageWithCGImage:rep.fullScreenImage]; [self performSelectorInBackground:@selector(selectImage:) withObject:image]; } }; void (^assetGroupEnumerator)(ALAssetsGroup *, BOOL *) = ^(ALAssetsGroup *group, BOOL *stop) { if(group != nil) { NSLog(@"GRUP Desc:%@",[group valueForProperty:ALAssetsGroupPropertyType]); NSLog(@"GRUP Desc:%@",group.description); NSNumber *type = (NSNumber *)[group valueForProperty:ALAssetsGroupPropertyType]; NSLog(@"GRUP Desc:%@",NSStringFromClass([type class])); int tip = [type intValue]; [group setAssetsFilter:[ALAssetsFilter allPhotos]]; [group enumerateAssetsUsingBlock:assetEnumerator]; } }; ALAssetsLibrary *library = [[ALAssetsLibrary alloc] init]; [library enumerateGroupsWithTypes:ALAssetsGroupAll usingBlock:assetGroupEnumerator failureBlock: ^(NSError *error) { NSLog(@"Failure"); }];
好像我不使用这行UIImage * image = [UIImage imageWithCGImage:rep.fullScreenImage];并且后面的行正在进行枚举 所有资产。如果我尝试获取图像或仅获取元数据,它会在某些时候崩溃。问题是没有XCode的崩溃向我显示线程或原因。左窗格中未显示任何内容。使用分析器运行它会向我显示应用程序的2MB稳定使用率。它似乎没有内存泄漏。
我尝试了不同的方法但仍然崩溃而没有任何错误消息。