gitリポジトリのurlを貼り付けるだけでアプリケーションのビルドを実行するアプリ。 macOS用
Revision | 23673ce76df7894974a7edfe72887669f9c8f2f3 (tree) |
---|---|
Time | 2017-08-12 17:23:12 |
Author | masakih <masakih@user...> |
Commiter | masakih |
AppDelegateの取得方法を変更
@@ -70,7 +70,7 @@ final class Git { | ||
70 | 70 | |
71 | 71 | private func excuteGit(workingURL: URL, args: [String]) throws { |
72 | 72 | |
73 | - let xcodeURL = (NSApplication.shared().delegate as! AppDelegate).xcodeURL | |
73 | + let xcodeURL = NSApplication.appDelegate.xcodeURL | |
74 | 74 | guard let builderURL = xcodeURL?.appendingPathComponent("/Contents/Developer/usr/bin/git") else { |
75 | 75 | |
76 | 76 | throw GitError.other("git is not found.") |
@@ -37,7 +37,7 @@ final class ProjectBuilder { | ||
37 | 37 | |
38 | 38 | func build() throws { |
39 | 39 | |
40 | - let xcodeURL = (NSApplication.shared().delegate as! AppDelegate).xcodeURL | |
40 | + let xcodeURL = NSApplication.appDelegate.xcodeURL | |
41 | 41 | guard let builderURL = xcodeURL?.appendingPathComponent("/Contents/Developer/usr/bin/xcodebuild") else { |
42 | 42 | |
43 | 43 | throw ProjectBuilderError.commandNotFound |