diff options
-rw-r--r-- | platform/ios/DEVELOPING.md | 1 | ||||
-rwxr-xr-x | platform/ios/scripts/deploy-packages.sh | 1 | ||||
-rwxr-xr-x | platform/ios/scripts/package.sh | 2 |
3 files changed, 3 insertions, 1 deletions
diff --git a/platform/ios/DEVELOPING.md b/platform/ios/DEVELOPING.md index d1be5d703e..21864e534d 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 64cb472f6b..42bce89cf3 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 6bf9dd12b0..f0ca683389 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} |