From f41546e61456ff85d07c4b21ada54ae7b2709b87 Mon Sep 17 00:00:00 2001 From: Jason Wray Date: Wed, 1 Jun 2016 14:47:51 -0400 Subject: [PATCH] [ios] Default to Debug BUILDTYPE, but explicitly set Release for deploys --- platform/ios/DEVELOPING.md | 1 + platform/ios/scripts/deploy-packages.sh | 1 + platform/ios/scripts/package.sh | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/ios/DEVELOPING.md b/platform/ios/DEVELOPING.md index d1be5d703..21864e534 100644 --- a/platform/ios/DEVELOPING.md +++ b/platform/ios/DEVELOPING.md @@ -36,6 +36,7 @@ If you don’t have an Apple Developer account, change the destination to a simu You can customize the build output by passing the following arguments into the `make` invocation: +* `BUILDTYPE=Release` will optimize for distribution. Defaults to `Debug`. * `BUILD_DEVICE=false` builds only for the iOS Simulator. * `FORMAT=dynamic` builds only a dynamic framework. `FORMAT=static` builds only a static framework, for compatibility with iOS 7.x. * `SYMBOLS=NO` strips the build output of any debug symbols, yielding much smaller binaries. diff --git a/platform/ios/scripts/deploy-packages.sh b/platform/ios/scripts/deploy-packages.sh index 64cb472f6..42bce89cf 100755 --- a/platform/ios/scripts/deploy-packages.sh +++ b/platform/ios/scripts/deploy-packages.sh @@ -56,6 +56,7 @@ export TRAVIS_REPO_SLUG=mapbox-gl-native export PUBLISH_VERSION=$1 export GITHUB_USER=mapbox export GITHUB_REPO=mapbox-gl-native +export BUILDTYPE=Release BINARY_DIRECTORY=$2 PUBLISH_PRE_FLAG='' diff --git a/platform/ios/scripts/package.sh b/platform/ios/scripts/package.sh index 6bf9dd12b..f0ca68338 100755 --- a/platform/ios/scripts/package.sh +++ b/platform/ios/scripts/package.sh @@ -9,7 +9,7 @@ OUTPUT=build/ios/pkg DERIVED_DATA=build/ios PRODUCTS=${DERIVED_DATA}/Build/Products -BUILDTYPE=${BUILDTYPE:-Release} +BUILDTYPE=${BUILDTYPE:-Debug} BUILD_FOR_DEVICE=${BUILD_DEVICE:-true} GCC_GENERATE_DEBUGGING_SYMBOLS=${SYMBOLS:-YES}