Skip to content

Commit

Permalink
Fixes buildasaurs#294: Hanging on xcodebuild -showBuildSettings whi…
Browse files Browse the repository at this point in the history
…le creating template
  • Loading branch information
Aliaksandr Chapliuk committed Apr 20, 2017
1 parent d3bd35b commit 99dbdfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BuildaKit/XcodeDeviceParser.swift
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public class XcodeDeviceParser {
let folder = projectFolderUrl.URLByDeletingLastPathComponent?.path ?? "~"
let schemeName = scheme.name

let script = "cd \"\(folder)\"; xcodebuild \(ownerArgs) -scheme \"\(schemeName)\" -showBuildSettings 2>/dev/null | egrep '^\\s*PLATFORM_NAME' | cut -d = -f 2 | uniq | xargs echo"
let script = "cd \"\(folder)\"; xcodebuild clean \(ownerArgs) -scheme \"\(schemeName)\" -showBuildSettings 2>/dev/null | egrep '^\\s*PLATFORM_NAME' | cut -d = -f 2 | uniq | xargs echo"
let res = Script.runTemporaryScript(script)
if res.terminationStatus == 0 {
let deviceType = res.standardOutput.stripTrailingNewline()
Expand Down

0 comments on commit 99dbdfd

Please sign in to comment.