diff --git a/Objective-C/DSYMTools/Controller/MainWindowViewController.m b/Objective-C/DSYMTools/Controller/MainWindowViewController.m index b09c390..4a22513 100755 --- a/Objective-C/DSYMTools/Controller/MainWindowViewController.m +++ b/Objective-C/DSYMTools/Controller/MainWindowViewController.m @@ -241,7 +241,13 @@ - (IBAction)exportIPA:(id)sender { NSLog(@"还未选中 archive 文件"); return; } - + + if(_selectedArchiveInfo.archiveFileType == ArchiveFileTypeDSYM){ + NSLog(@"archive 文件才可导出 ipa 文件"); + return; + } + + NSString *ipaFileName = [_selectedArchiveInfo.archiveFileName stringByReplacingOccurrencesOfString:@"xcarchive" withString:@"ipa"]; NSSavePanel *saveDlg = [[NSSavePanel alloc]init];