From ea2e2edce86f9268b1e6f2a88c8248f3fc505b15 Mon Sep 17 00:00:00 2001 From: john feng Date: Mon, 12 Dec 2016 16:21:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9C=A810.12=E4=B8=AD?= =?UTF-8?q?=E7=94=9F=E6=88=90entitlements.plist=E6=96=87=E4=BB=B6=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E7=9A=84=E6=83=85=E5=86=B5.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- iReSign/iReSign/iReSignAppDelegate.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/iReSign/iReSign/iReSignAppDelegate.m b/iReSign/iReSign/iReSignAppDelegate.m index d536f4e..1a186ce 100755 --- a/iReSign/iReSign/iReSignAppDelegate.m +++ b/iReSign/iReSign/iReSignAppDelegate.m @@ -411,6 +411,11 @@ - (void)checkEntitlementsFix:(NSTimer *)timer { - (void)doEntitlementsEdit { + if ([entitlementsResult containsString:@"SecPolicySetValue"]) { + NSMutableArray *linesInOutput=[NSMutableArray arrayWithArray:[entitlementsResult componentsSeparatedByString:@"\n"]]; + [linesInOutput removeObjectAtIndex:0]; + entitlementsResult=[linesInOutput componentsJoinedByString:@"\n"]; + } NSDictionary* entitlements = entitlementsResult.propertyList; entitlements = entitlements[@"Entitlements"]; NSString* filePath = [workingPath stringByAppendingPathComponent:@"entitlements.plist"];