Index: platform_tools/ios/bin/ios_setup.sh |
diff --git a/platform_tools/ios/bin/ios_setup.sh b/platform_tools/ios/bin/ios_setup.sh |
index 7af4dec319f4d5699385f2dd8259a109f2b07ea7..a991c53c31eba99253bea5ba13f99b3b5540098f 100755 |
--- a/platform_tools/ios/bin/ios_setup.sh |
+++ b/platform_tools/ios/bin/ios_setup.sh |
@@ -41,11 +41,16 @@ if [[ -z "$SKIA_OUT" ]]; then |
SKIA_OUT="$SKIA_SRC_DIR/out" |
fi |
+# Location of XCode build products. |
+if [[ -z "$XCODEBUILD" ]]; then |
+ XCODEBUILD="${SKIA_SRC_DIR}/xcodebuild" |
+fi |
+ |
# Name of the iOS app. |
IOS_APP=iOSShell.ipa |
# Location of the compiled iOS code. |
-IOS_OUT=${SKIA_SRC_DIR}/xcodebuild/${BUILDTYPE}-iphoneos |
+IOS_OUT=${XCODEBUILD}/${BUILDTYPE}-iphoneos |
# Location of the compiled iOS app. |
IOS_APP_PATH=${IOS_OUT}/${IOS_APP} |