Skip to content

Commit

Permalink
Fixed an issue when reading a large provisioning profile
Browse files Browse the repository at this point in the history
  • Loading branch information
DanTheMan827 committed Jan 3, 2016
1 parent 82fde2a commit dc690da
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion AppSigner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0b14</string>
<string>1.0b15</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
10 changes: 7 additions & 3 deletions NSTask-execute.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,17 @@ extension NSTask {
self.standardOutput = pipe
self.standardError = pipe
let pipeFile = pipe.fileHandleForReading

self.launch()
self.waitUntilExit()
let data = pipeFile.readDataToEndOfFile()

let data = NSMutableData()
while self.running {
data.appendData(pipeFile.availableData)
}

let output = NSString(data: data, encoding: NSUTF8StringEncoding) as! String

return AppSignerTaskOutput(status: self.terminationStatus, output: output)

}

func execute(launchPath: String, workingDirectory: String?, arguments: [String]?)->AppSignerTaskOutput{
Expand Down

0 comments on commit dc690da

Please sign in to comment.