Skip to content

Commit

Permalink
Ensure Xcode is installed or print a warning message and return.
Browse files Browse the repository at this point in the history
Closes #897
  • Loading branch information
LeoNatan committed Aug 22, 2018
1 parent 8889950 commit a49005d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions detox/scripts/build_framework.ios.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash -e -x

# Ensure Xcode is installed or print a warning message and return.
xcodebuild -version &>/dev/null || (echo "WARNING: Xcode is not installed on this machine. Skipping iOS framework build phase" && return 0)

detoxRootPath="$(dirname $(dirname ${0}))"
detoxVersion=`node -p "require('${detoxRootPath}/package.json').version"`

Expand Down

0 comments on commit a49005d

Please sign in to comment.