From 614aab4ea2842c442a8699d68bc8b1aadde93d3e Mon Sep 17 00:00:00 2001 From: Jason Wray Date: Tue, 3 Jul 2018 10:56:32 -0400 Subject: [ios, build] Log raw xcodebuild output for package commands --- platform/ios/scripts/package.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/platform/ios/scripts/package.sh b/platform/ios/scripts/package.sh index 438fce240f..84c92f82ad 100755 --- a/platform/ios/scripts/package.sh +++ b/platform/ios/scripts/package.sh @@ -8,6 +8,7 @@ NAME=Mapbox OUTPUT=build/ios/pkg DERIVED_DATA=build/ios PRODUCTS=${DERIVED_DATA} +LOG_PATH=build/xcodebuild-$(date +"%Y-%m-%d_%H%M%S").log BUILDTYPE=${BUILDTYPE:-Debug} BUILD_FOR_DEVICE=${BUILD_DEVICE:-true} @@ -76,7 +77,7 @@ xcodebuild \ -scheme ${SCHEME} \ -configuration ${BUILDTYPE} \ -sdk iphonesimulator \ - -jobs ${JOBS} | xcpretty + -jobs ${JOBS} | tee ${LOG_PATH} | xcpretty if [[ ${BUILD_FOR_DEVICE} == true ]]; then step "Building for iOS devices using scheme ${SCHEME}" @@ -91,7 +92,7 @@ if [[ ${BUILD_FOR_DEVICE} == true ]]; then -scheme ${SCHEME} \ -configuration ${BUILDTYPE} \ -sdk iphoneos \ - -jobs ${JOBS} | xcpretty + -jobs ${JOBS} | tee ${LOG_PATH} | xcpretty fi LIBS=(Mapbox.a) -- cgit v1.2.1