• R/O
  • HTTP
  • SSH
  • HTTPS

提交

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

gitリポジトリのurlを貼り付けるだけでアプリケーションのビルドを実行するアプリ。 macOS用


Commit MetaInfo

修订版b770341461893d4cebde01f7dbf45902f54bfc58 (tree)
时间2018-04-07 23:33:21
作者masakih <masakih@user...>
Commitermasakih

Log Message

ProcessExtensionを使用するように変更

更改概述

差异

--- a/AppBuilderWithGit/ProjectBuilder.swift
+++ b/AppBuilderWithGit/ProjectBuilder.swift
@@ -49,18 +49,15 @@ final class ProjectBuilder {
4949 throw ProjectBuilderError.other("URL is Invalid.")
5050 }
5151
52- let xcodebuild = Process()
53- xcodebuild.launchPath = builderURL.path
54- xcodebuild.arguments = info.arguments
52+ let xcodebuild = Process() <<< builderURL.path <<< info.arguments
5553 xcodebuild.currentDirectoryPath = info.projectURL.path
54+ xcodebuild >>> { stdout, stderr in
55+
56+ let log = LogStocker("xcodebuild.log")
57+ log?.write(stdout.data)
58+ log?.write(stderr.data)
59+ }
5660
57- let pipe = Pipe()
58- xcodebuild.standardOutput = pipe
59- xcodebuild.standardError = pipe
60- let log = LogStocker("xcodebuild.log")
61- log?.read(pipe.fileHandleForReading)
62-
63- xcodebuild.launch()
6461 xcodebuild.waitUntilExit()
6562
6663 guard xcodebuild.terminationStatus == 0