From c566d6a6122b6076cd05c39b6ea2ec74ac83657b Mon Sep 17 00:00:00 2001 From: answer Date: Mon, 28 Nov 2016 00:31:06 +0800 Subject: [PATCH] =?UTF-8?q?#1.0.5=20=E6=94=AF=E6=8C=81=E6=8B=96=E5=85=A5?= =?UTF-8?q?=20dSYM=20=E6=96=87=E4=BB=B6=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DSYMTools/Controller/MainWindowViewController.m | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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];