gitリポジトリのurlを貼り付けるだけでアプリケーションのビルドを実行するアプリ。 macOS用
Revisión | 6046d6ccc4925948a3f9b6b91b0e727ff0d0f7f2 (tree) |
---|---|
Tiempo | 2018-04-08 13:16:50 |
Autor | masakih <masakih@user...> |
Commiter | masakih |
charhageが必要かチェックするようにした
@@ -129,10 +129,17 @@ extension ViewController { | ||
129 | 129 | |
130 | 130 | private func carthage(_ url: URL) { |
131 | 131 | |
132 | - self.message = "Checking Carthage" | |
132 | + message = "Checking Carthage." | |
133 | 133 | |
134 | 134 | let carthage = Carthage(url) |
135 | 135 | |
136 | + guard carthage.checkCarthage() else { | |
137 | + | |
138 | + return | |
139 | + } | |
140 | + | |
141 | + message = "Building frameworks with Carthage." | |
142 | + | |
136 | 143 | carthage.execute() |
137 | 144 | } |
138 | 145 |
@@ -141,10 +148,10 @@ extension ViewController { | ||
141 | 148 | message = "Building Project." |
142 | 149 | |
143 | 150 | do { |
144 | - guard let builder = ProjectBuilder(url) | |
145 | - else { | |
146 | - message = "Fail build because project file is not found." | |
147 | - return | |
151 | + guard let builder = ProjectBuilder(url) else { | |
152 | + | |
153 | + message = "Fail build because project file is not found." | |
154 | + return | |
148 | 155 | } |
149 | 156 | |
150 | 157 | try builder.build() |