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
Package.swift declares one binary target for each distribution variant. SwiftPM downloads all artifacts of a resolved package, not only the artifacts that the selected product needs.
A consumer that uses the Sentry product only gets all seven archives. From a clean build of a small app:
2.9G artifacts/sentry-cocoa <- total
339M Sentry <- the only variant in use
580M Sentry-Dynamic
640M Sentry-Dynamic-WithARM64e
468M Sentry-WithoutUIKitOrAppKit
517M Sentry-WithoutUIKitOrAppKit-WithARM64e
299M SentryObjC-Dynamic
150M SentryObjC-Static
This makes a cold build slow. It also gives seven chances for a download to fail. Our CI build failed today because GitHub answered with status 500 for SentryObjC-Dynamic.xcframework.zip, which that build does not use.
Please let a consumer get only the variant that it uses. Possible options: put each variant in its own package, or keep only Sentry in the default manifest.
For now sentry-react-native declares the Sentry.xcframework archive as its own binary target and does not depend on this package (see getsentry/sentry-react-native#6784).
Activity
linear-code commentedon Sep 24, 2026
COCOA-1953
ref(ios): Consume sentry-cocoa as a binary target
philprime commentedon Sep 28, 2026
Closing this as a duplicate of #8133, let's continue the discussion there.
Package.swift#8133feat(ios): Support SPM autolinking (#6784)