diff options
Diffstat (limited to 'platform/ios/scripts/package.sh')
-rwxr-xr-x | platform/ios/scripts/package.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/platform/ios/scripts/package.sh b/platform/ios/scripts/package.sh index 54a34bdf8f..45aab45f3f 100755 --- a/platform/ios/scripts/package.sh +++ b/platform/ios/scripts/package.sh @@ -70,6 +70,13 @@ if [[ ${BUILD_STATIC} == true ]]; then SCHEME='static' fi +CI_XCCONFIG='' +if [[ ! -z "${CI:=}" ]]; then + xcconfig='platform/darwin/ci.xcconfig' + echo "CI environment, using ${xcconfig}" + CI_XCCONFIG="-xcconfig ./${xcconfig}" +fi + step "Building ${FORMAT} framework for iOS Simulator using ${SCHEME} scheme" xcodebuild \ CURRENT_PROJECT_VERSION=${PROJ_VERSION} \ @@ -77,6 +84,7 @@ xcodebuild \ CURRENT_SEMANTIC_VERSION=${SEM_VERSION} \ CURRENT_COMMIT_HASH=${HASH} \ ONLY_ACTIVE_ARCH=NO \ + ${CI_XCCONFIG} \ -derivedDataPath ${DERIVED_DATA} \ -workspace ./platform/ios/ios.xcworkspace \ -scheme ${SCHEME} \ @@ -92,6 +100,7 @@ if [[ ${BUILD_FOR_DEVICE} == true ]]; then CURRENT_SEMANTIC_VERSION=${SEM_VERSION} \ CURRENT_COMMIT_HASH=${HASH} \ ONLY_ACTIVE_ARCH=NO \ + ${CI_XCCONFIG} \ -derivedDataPath ${DERIVED_DATA} \ -workspace ./platform/ios/ios.xcworkspace \ -scheme ${SCHEME} \ |