You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Document the SPM migration playbook for end users #6174
Hitting Sentry.xcframework-ios.signature couldn't be copied to Signatures?
This bites archive builds (CI / TestFlight / Firebase distribution) but notxcodebuild build or Xcode → Run, because only
archive packaging consolidates signatures into <App>.app/Signatures/. If it works on a device locally but breaks in CI, you're
hitting this.
Why: With SENTRY_USE_SPM=1, RN's cocoapods/spm.rb adds Sentry as an SPM product dep on the RNSentry pod target in
addition to your app target's transitive consumption. Xcode collects Sentry.xcframework-ios.signature once per target → two files,
same destination, collision.
Workaround (drop into your Podfile post_install):
rnsentry=installer.pods_project.targets.find{ |t| t.name == 'RNSentry'}ifrnsentryphase_name='Strip duplicate Sentry.xcframework signature'unlessrnsentry.shell_script_build_phases.any?{ |p| p.name == phase_name}phase=rnsentry.new_shell_script_build_phase(phase_name)phase.shell_script="rm -f \"$BUILT_PRODUCTS_DIR/Sentry.xcframework-ios.signature\" || true\n"endendTheapptarget'scanonicalsignaturestilllandsinthearchive.RNSentrycompilesnormally,Sentrystaysstaticallylinked.Caveats:
- Workaround, not afix—trackgetsentry/sentry-react-native#6174 for the official RN-SPM playbook and remove this once it ships.
- VerifiedonXcode26.3 / @sentry/react-native8.13 / RN0.80.Worthre-checkingonanyofthosebumps.
- Failsloud, not silent: ifiteverstopsapplying,yougetthesameoriginalerrorback.
Activity
linear-code commentedon May 18, 2026
RN-649
ismumchow commentedon Jun 17, 2026
Hitting
Sentry.xcframework-ios.signature couldn't be copied to Signatures?This bites archive builds (CI / TestFlight / Firebase distribution) but not
xcodebuild buildor Xcode → Run, because onlyarchive packaging consolidates signatures into
<App>.app/Signatures/. If it works on a device locally but breaks in CI, you'rehitting this.
Why: With
SENTRY_USE_SPM=1, RN'scocoapods/spm.rbadds Sentry as an SPM product dep on the RNSentry pod target inaddition to your app target's transitive consumption. Xcode collects
Sentry.xcframework-ios.signatureonce per target → two files,same destination, collision.
Workaround (drop into your Podfile
post_install):docs(react-native): Document SPM setup (#20727)