Fail early and explicitly if protoc, pod, or xcodebuild are missing

pull/2774/head
Jorge Canizales 10 years ago
parent 7716c53a21
commit 02039a25c7
  1. 4
      src/objective-c/tests/build_tests.sh

@ -32,6 +32,10 @@ set -e
cd $(dirname $0)
hash protoc 2>/dev/null || { echo >&2 "protoc needs to be installed."; exit 1; }
hash pod 2>/dev/null || { echo >&2 "Cocoapods needs to be installed."; exit 1; }
hash xcodebuild 2>/dev/null || { echo >&2 "XCode command-line tools need to be installed."; exit 1; }
# The local test server needs to be compiled before this because pod install of
# gRPC renames some C gRPC files and not the server's code references to them.
#

Loading…
Cancel
Save