summaryrefslogtreecommitdiff
path: root/scripts/ios/package.sh
diff options
context:
space:
mode:
authorJustin R. Miller <incanus@codesorcery.net>2015-04-28 16:45:25 -0400
committerJustin R. Miller <incanus@codesorcery.net>2015-04-28 17:47:59 -0400
commit0995930d90b7a6f8c53d4a45c1941d22179e23f6 (patch)
treeaa1de4981b98eeb72828df02b6c48ba04e4d57f3 /scripts/ios/package.sh
parent32e00b5a036fa6a4c1048e247c7c0630e01448ed (diff)
downloadqtlocation-mapboxgl-0995930d90b7a6f8c53d4a45c1941d22179e23f6.tar.gz
fixes #1361: split iOS device & sim builds (sim-only for tests)
Diffstat (limited to 'scripts/ios/package.sh')
-rwxr-xr-xscripts/ios/package.sh19
1 files changed, 10 insertions, 9 deletions
diff --git a/scripts/ios/package.sh b/scripts/ios/package.sh
index e71925f803..9dcdf0a507 100755
--- a/scripts/ios/package.sh
+++ b/scripts/ios/package.sh
@@ -35,15 +35,16 @@ export BUILDTYPE=${BUILDTYPE:-Release}
export HOST=ios
make Xcode/ios
-step "Building iOS device targets..."
-xcodebuild -sdk iphoneos${IOS_SDK_VERSION} \
- ARCHS="arm64 armv7 armv7s" \
- ONLY_ACTIVE_ARCH=NO \
- -project ./build/ios/mbgl.xcodeproj \
- -configuration ${BUILDTYPE} \
- -target everything \
- -jobs ${JOBS} | xcpretty -c
-
+if [[ ${#} -eq 0 ]]; then # no args
+ step "Building iOS device targets..."
+ xcodebuild -sdk iphoneos${IOS_SDK_VERSION} \
+ ARCHS="arm64 armv7 armv7s" \
+ ONLY_ACTIVE_ARCH=NO \
+ -project ./build/ios/mbgl.xcodeproj \
+ -configuration ${BUILDTYPE} \
+ -target everything \
+ -jobs ${JOBS} | xcpretty -c
+fi
step "Building iOS Simulator targets..."
xcodebuild -sdk iphonesimulator${IOS_SDK_VERSION} \