Skip to content

Commit e9f483c

Browse files
ci: Fix testflight upload (#6711)
Run prepare-package script for uploading to testflight to fix SPM resolving issues.
1 parent b44bf23 commit e9f483c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/testflight.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,16 @@ jobs:
4646
with:
4747
bundler-cache: true
4848

49+
# As the DistributionSample project uses local SPM, xcodebuild resolves SPM dependencies for all
50+
# sample projects. The Package.swift references binary targets, which in release branch commits points
51+
# to non-existent download URLs. This creates chicken-egg failures when building these sample apps for
52+
# a release commit build. When building these sample apps for a release commit, xcodebuild tries to
53+
# resolve all SPM dependencies, including the binary targets pointing to these non-existent URLs. The
54+
# sample projects don't use SPM for including Sentry. Only the DistributionSample uses local SPM.
55+
# Therefore, we only keep the local DistributionSample reference in the Package.swift as a workaround.
56+
- name: Only keep distribution lib and target in Package.swift
57+
run: ./scripts/prepare-package.sh --only-keep-distribution true
58+
4959
- run: make init-ci-build
5060
- run: make xcode-ci
5161

0 commit comments

Comments
 (0)