[PM-25359] Remove xcbeautify from build to uncover build failure logs (#1898)

Co-authored-by: Federico Maccaroni <fedemkr@gmail.com>
This commit is contained in:
Álison Fernandes 2025-09-01 15:34:03 +01:00 committed by GitHub
parent 56b02ad135
commit 0631c73f7d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -38,6 +38,8 @@ BUILD_DIR="build"
DERIVED_DATA_PATH="${BUILD_DIR}/DerivedData"
ARCHIVE_PATH="${BUILD_DIR}/${BUILD_SCHEME}.xcarchive"
EXPORT_PATH="${BUILD_DIR}/${BUILD_SCHEME}"
RESULT_BUNDLE_PATH="export/build.xcresult"
RESULT_EXPORT_ARCHIVE_BUNDLE_PATH="export/buildExportArchive.xcresult"
echo "🧱 Building in ${bold}$(pwd)${normal}"
echo "🧱 Project file ${bold}${PROJECT_FILE}${normal}"
@ -64,7 +66,8 @@ case "$MODE" in
-configuration Debug \
-destination "generic/platform=iOS Simulator" \
-derivedDataPath "${DERIVED_DATA_PATH}" \
| xcbeautify --renderer github-actions
-resultBundlePath "${RESULT_BUNDLE_PATH}" \
-quiet
;;
"Device")
echo "📦 Performing Xcode archive"
@ -74,14 +77,16 @@ case "$MODE" in
-configuration Release \
-archivePath "${ARCHIVE_PATH}" \
-derivedDataPath "${DERIVED_DATA_PATH}" \
| xcbeautify --renderer github-actions
-resultBundlePath "${RESULT_BUNDLE_PATH}" \
-quiet
echo "🚚 Performing Xcode archive export"
xcrun xcodebuild -exportArchive \
-archivePath "${ARCHIVE_PATH}" \
-exportPath "${EXPORT_PATH}" \
-exportOptionsPlist "Configs/export_options.plist" \
| xcbeautify --renderer github-actions
-resultBundlePath "${RESULT_EXPORT_ARCHIVE_BUNDLE_PATH}" \
-quiet
;;
*)
echo >&2 "Invalid build mode: ${bold}${MODE}${normal}"