From 2e5431af8e8efebb44128a7ccbe9bba42678db32 Mon Sep 17 00:00:00 2001 From: Dan Motzenbecker Date: Sun, 4 Oct 2015 19:33:37 -0400 Subject: [PATCH] check for xcodebuild --- natal.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/natal.coffee b/natal.coffee index 9f406af..149c503 100644 --- a/natal.coffee +++ b/natal.coffee @@ -112,6 +112,7 @@ init = (projName) -> exec 'type lein' exec 'type pod' exec 'type watchman' + exec 'type xcodebuild' podVersion = exec('pod --version', true).toString().trim() unless semver.satisfies podVersion, ">=#{podMinVersion}" @@ -272,6 +273,8 @@ init = (projName) -> 'CocoaPods is required (https://cocoapods.org)' else if message.match /type\:.+watchman/i 'Watchman is required (https://facebook.github.io/watchman)' + else if message.match /type\:.+xcodebuild/i + 'Xcode Command Line Tools are required' else message