Skip to content

Commit

Permalink
Fix compatibility with MacOS 10.12 Developer Beta 8
Browse files Browse the repository at this point in the history
  • Loading branch information
DanTheMan827 committed Sep 6, 2016
1 parent 98df06b commit d58cccf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions AppSigner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.8.2</string>
<string>1.8.3</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.8.2</string>
<string>1.8.3</string>
<key>LSApplicationCategoryType</key>
<string></string>
<key>LSMinimumSystemVersion</key>
Expand Down
14 changes: 7 additions & 7 deletions ProvisioningProfile.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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("<?xml") {
self.rawXML = taskOutput.output.substringFromIndex(xmlIndex.startIndex)
} else {
Log.write("Unable to find xml start tag in profile")
self.rawXML = taskOutput.output
}
self.rawXML = xmlNoError
if let results = try? NSPropertyListSerialization.propertyListWithData(xmlNoError.dataUsingEncoding(NSUTF8StringEncoding)!, options: .Immutable, format: nil) {

if let results = try? NSPropertyListSerialization.propertyListWithData(self.rawXML.dataUsingEncoding(NSUTF8StringEncoding)!, options: .Immutable, format: nil) {
if let expirationDate = results.valueForKey("ExpirationDate") as? NSDate,
creationDate = results.valueForKey("CreationDate") as? NSDate,
name = results.valueForKey("Name") as? String,
Expand Down

0 comments on commit d58cccf

Please sign in to comment.