按停止记录显然使iPad上的应用程序崩溃

问题描述

我有代码可以停止在iPhone上进行音频录制。我在实际的iPhone上进行了测试,效果很好。提交了该应用程序,但由于他们在按应用程序中的停止记录按钮时崩溃而被拒绝,因此被拒绝了。

- (void) audioRecorderDidFinishRecording:(AVAudioRecorder *) recorder  successfully:(BOOL)flag
 {
 NSLog(@"Recording Saved To %@",recorder.url);
     
 // here's URL
 NSURL *documentURL = recorder.url;
     
 //new code for sharing...
 UIActivityViewController *shareVC = [[UIActivityViewController alloc] initWithActivityItems:@[documentURL] applicationActivities:nil];
     
 // exclude several items
 NSArray *excluded = @[UIActivityTypeMessage,UIActivityTypeAddToReadingList];
 shareVC.excludedActivityTypes = excluded;
     
 shareVC.completionWithItemsHandler = ^(Nsstring *activitytype,BOOL completed,NSArray *returnedItems,NSError *error){
         //completed
         if (completed){
         NSLog(@"User selected activity type: %@",activitytype);
         //[self deleteRecordFile:recorder.url];
         } else{
         NSLog(@"User cancelled recording deleted!");
         [self deleteRecordFile:recorder.url];
         }
     };

他们在iPad上对其进行了测试。那么,上面的代码中是否有什么仅可在iPhone上运行但在iPad上崩溃?

还有审查测试人员,他们是否在模拟器上进行测试,而不是可能也是导致崩溃的实际设备?

他们发送给我的一份崩溃报告中的错误是:

Exception Type:  EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000,0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY
Termination Reason: Namespace SPRINGBOARD,Code 0x8badf00d
Termination Description: SPRINGBOARD,<RBSTerminateContext| domain:10 code:0x8BADF00D explanation:[application<padspro.beatdrops>:739] Failed to terminate gracefully after 10.0s | ProcessVisibility: UnkNown | Processstate: Running | WatchdogEvent: process-exit | WatchdogVisibility: Background | WatchdogcpuStatistics: ( | "Elapsed total cpu time (seconds): 55.240 (user 55.240,system 0.000),100% cpu",| "Elapsed application cpu time (seconds): 48.761,88% cpu" | ) reportType:CrashLog maxTerminationResistance:Interactive>
Triggered by Thread:  0

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)