Skip to content

Commit f24e12c

Browse files
committed
fix: use automatic signing for archive step to resolve iCloud provisioning
1 parent b4b88f0 commit f24e12c

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

scripts/build-release.sh

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -360,14 +360,6 @@ build_for_arch() {
360360
# ── Step 1: Archive ──
361361
local archive_path="build/TablePro-${arch}.xcarchive"
362362
echo "📦 Archiving..."
363-
# Resolve provisioning profile name for archive
364-
local archive_profile_name=""
365-
local profile_path_for_archive
366-
profile_path_for_archive=$(find ~/Library/MobileDevice/Provisioning\ Profiles -name "*.provisionprofile" -print -quit 2>/dev/null || true)
367-
if [ -n "${profile_path_for_archive:-}" ]; then
368-
archive_profile_name=$(/usr/libexec/PlistBuddy -c "Print Name" /dev/stdin <<< "$(security cms -D -i "$profile_path_for_archive" 2>/dev/null)" 2>/dev/null || true)
369-
fi
370-
371363
if ! xcodebuild archive \
372364
-project "$PROJECT" \
373365
-scheme "$SCHEME" \
@@ -376,9 +368,8 @@ build_for_arch() {
376368
-archivePath "$archive_path" \
377369
ONLY_ACTIVE_ARCH=YES \
378370
CODE_SIGN_IDENTITY="$SIGN_IDENTITY" \
379-
CODE_SIGN_STYLE=Manual \
371+
CODE_SIGN_STYLE=Automatic \
380372
DEVELOPMENT_TEAM="$TEAM_ID" \
381-
${archive_profile_name:+PROVISIONING_PROFILE_SPECIFIER="$archive_profile_name"} \
382373
${ANALYTICS_HMAC_SECRET:+ANALYTICS_HMAC_SECRET="$ANALYTICS_HMAC_SECRET"} \
383374
-skipPackagePluginValidation \
384375
-clonedSourcePackagesDirPath "$SPM_CACHE_DIR" \

0 commit comments

Comments
 (0)