Skip to content

Commit 0631c73

Browse files
vvolkgangfedemkr
andauthored
[PM-25359] Remove xcbeautify from build to uncover build failure logs (#1898)
Co-authored-by: Federico Maccaroni <[email protected]>
1 parent 56b02ad commit 0631c73

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Scripts/build.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ BUILD_DIR="build"
3838
DERIVED_DATA_PATH="${BUILD_DIR}/DerivedData"
3939
ARCHIVE_PATH="${BUILD_DIR}/${BUILD_SCHEME}.xcarchive"
4040
EXPORT_PATH="${BUILD_DIR}/${BUILD_SCHEME}"
41+
RESULT_BUNDLE_PATH="export/build.xcresult"
42+
RESULT_EXPORT_ARCHIVE_BUNDLE_PATH="export/buildExportArchive.xcresult"
4143

4244
echo "🧱 Building in ${bold}$(pwd)${normal}"
4345
echo "🧱 Project file ${bold}${PROJECT_FILE}${normal}"
@@ -64,7 +66,8 @@ case "$MODE" in
6466
-configuration Debug \
6567
-destination "generic/platform=iOS Simulator" \
6668
-derivedDataPath "${DERIVED_DATA_PATH}" \
67-
| xcbeautify --renderer github-actions
69+
-resultBundlePath "${RESULT_BUNDLE_PATH}" \
70+
-quiet
6871
;;
6972
"Device")
7073
echo "📦 Performing Xcode archive"
@@ -74,14 +77,16 @@ case "$MODE" in
7477
-configuration Release \
7578
-archivePath "${ARCHIVE_PATH}" \
7679
-derivedDataPath "${DERIVED_DATA_PATH}" \
77-
| xcbeautify --renderer github-actions
80+
-resultBundlePath "${RESULT_BUNDLE_PATH}" \
81+
-quiet
7882

7983
echo "🚚 Performing Xcode archive export"
8084
xcrun xcodebuild -exportArchive \
8185
-archivePath "${ARCHIVE_PATH}" \
8286
-exportPath "${EXPORT_PATH}" \
8387
-exportOptionsPlist "Configs/export_options.plist" \
84-
| xcbeautify --renderer github-actions
88+
-resultBundlePath "${RESULT_EXPORT_ARCHIVE_BUNDLE_PATH}" \
89+
-quiet
8590
;;
8691
*)
8792
echo >&2 "Invalid build mode: ${bold}${MODE}${normal}"

0 commit comments

Comments
 (0)