From d58cccfaa3dfc6782e184c5522ec63d2e5cfd404 Mon Sep 17 00:00:00 2001 From: Daniel Radtke Date: Tue, 6 Sep 2016 12:53:59 -0500 Subject: [PATCH] Fix compatibility with MacOS 10.12 Developer Beta 8 --- AppSigner/Info.plist | 4 ++-- ProvisioningProfile.swift | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/AppSigner/Info.plist b/AppSigner/Info.plist index 1e722a8..63ef447 100644 --- a/AppSigner/Info.plist +++ b/AppSigner/Info.plist @@ -15,11 +15,11 @@ CFBundlePackageType APPL CFBundleShortVersionString - 1.8.2 + 1.8.3 CFBundleSignature ???? CFBundleVersion - 1.8.2 + 1.8.3 LSApplicationCategoryType LSMinimumSystemVersion diff --git a/ProvisioningProfile.swift b/ProvisioningProfile.swift index 71bcf0d..b635649 100644 --- a/ProvisioningProfile.swift +++ b/ProvisioningProfile.swift @@ -48,14 +48,14 @@ struct ProvisioningProfile { let taskOutput = NSTask().execute("/usr/bin/security", workingDirectory: nil, arguments: securityArgs) if taskOutput.status == 0 { - var xmlNoError = taskOutput.output - if xmlNoError.containsString("SecPolicySetValue") { - var linesInOutput = xmlNoError.componentsSeparatedByString("\n") as [String] - linesInOutput.removeAtIndex(0) - xmlNoError = linesInOutput.joinWithSeparator("\n") + if let xmlIndex = taskOutput.output.rangeOfString("