check for xcodebuild

This commit is contained in:
Dan Motzenbecker 2015-10-04 19:33:37 -04:00
parent abf5cd5916
commit 2e5431af8e
1 changed files with 3 additions and 0 deletions

View File

@ -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