From b5d01e3b68f9099035025286c22800dc50e8e606 Mon Sep 17 00:00:00 2001 From: Allan Lang Date: Sun, 6 Jul 2025 10:59:09 +0100 Subject: [PATCH] Use destination specification technique from test build --- .github/workflows/build-release.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-release.yaml b/.github/workflows/build-release.yaml index a7fa5f7..9ff5915 100644 --- a/.github/workflows/build-release.yaml +++ b/.github/workflows/build-release.yaml @@ -103,10 +103,14 @@ jobs: cp $PP_PATH ~/Library/MobileDevice/Provisioning\ Profiles - name: Build archive + env: + platform: ${{ 'iOS Simulator' }} run: | + # xcrun xctrace returns via stderr, not the expected stdout (see https://developer.apple.com/forums/thread/663959) + device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{print $1" "$2}'` set -o pipefail mkdir -p ~/build - xcodebuild clean archive -scheme "Tree Tracker" -project "Tree Tracker.xcodeproj" -sdk iphoneos -configuration Release -archivePath ~/build/Tree\ Tracker.xcarchive | xcpretty + xcodebuild clean archive -scheme "Tree Tracker" -project "Tree Tracker.xcodeproj" -destination "platform=$platform,name=$device" -sdk iphoneos -configuration Release -archivePath ~/build/Tree\ Tracker.xcarchive | xcpretty - name: Export .ipa run: |