Skip to content

feat(ios): bump Sentry Cocoa to 9.24.0 and drop CocoaPods in favor of SPM - #1352

Open
lucas-zimerman wants to merge 2 commits into
mainfrom
lz/update-ios-9240
Open

feat(ios): bump Sentry Cocoa to 9.24.0 and drop CocoaPods in favor of SPM#1352
lucas-zimerman wants to merge 2 commits into
mainfrom
lz/update-ios-9240

Conversation

@lucas-zimerman

Copy link
Copy Markdown
Collaborator

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

📜 Description

  • Bump sentry-cocoa from 9.16.1 to 9.24.0 in Package.swift.
  • Remove SentryCapacitor.podspec and its references in package.json, CONTRIBUTING.md and scripts/update-cocoa.sh (which now only manages Package.swift).
  • Migrate SentryCapacitor in the ionic-angular-v7 and ionic-vue3 sample apps from CocoaPods to SPM (XCLocalSwiftPackageReference), matching what ionic-angular-v8 already does. Other Capacitor plugins in these samples stay on CocoaPods — only Sentry moves to SPM.

💡 Motivation and Context

sentry-cocoa deprecated CocoaPods and stopped publishing new releases to CocoaPods trunk after 9.19.1 (confirmed against trunk.cocoapods.org — nothing from 9.20.0 through the current 9.24.0 was ever published there). Keeping SentryCapacitor.podspec around means it can never be bumped past 9.16.1/9.19.1, and CocoaPods itself is on an industry-wide sunset (trunk goes fully read-only December 2, 2026), so there's no benefit to staging this over multiple releases — same reasoning Firebase and sentry-react-native used to drop CocoaPods this cycle.

💚 How did you test it?

  • Validated the edited .pbxproj files by round-tripping them through a Python ASCII-plist parser and diffing the object graph against ionic-angular-v8's known-good SPM wiring — structurally identical.
  • Could not run pod install/xcodebuild locally (no macOS/Xcode in this environment); CI's Sample Build workflow (pod install --repo-update + xcodebuild) on all three sample apps is the first real build verification.

📝 Checklist

  • I added tests to verify changes
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • All tests passing
  • Public API changes reviewed by another Mobile SDK team member or implemented according to the develop docs spec
  • No breaking changes — Break Changes note is queued for the next release; this only removed an unmaintainable install path, see CHANGELOG.

🔮 Next steps

  • CI must pass pod install + xcodebuild for ionic-angular-v7, ionic-angular-v8, and ionic-vue3 before merge — first real validation of the .pbxproj edits since this was authored without macOS/Xcode access.
  • Podfile.lock in ionic-angular-v7/ionic-vue3 still lists the old SentryCapacitor/Sentry/SentryPrivate entries; will self-correct on the next pod install.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LTc7FjqtGsy2MFcvfBftJ4

lucas-zimerman and others added 2 commits July 30, 2026 23:56
… SPM

sentry-cocoa deprecated CocoaPods (getsentry/sentry-cocoa#7526) and
stopped publishing new releases to CocoaPods trunk after 9.19.1, so
SentryCapacitor.podspec could never be bumped past that version.

- Bump sentry-cocoa to 9.24.0 in Package.swift
- Remove SentryCapacitor.podspec and its references in package.json,
  CONTRIBUTING.md and scripts/update-cocoa.sh
- Migrate SentryCapacitor in the ionic-angular-v7 and ionic-vue3 sample
  apps from CocoaPods to SPM, matching ionic-angular-v8

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LTc7FjqtGsy2MFcvfBftJ4
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LTc7FjqtGsy2MFcvfBftJ4
@github-actions

Copy link
Copy Markdown
Contributor
Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 6b9937e

@lucas-zimerman

Copy link
Copy Markdown
Collaborator Author

will be ready for review after the next release

lucas-zimerman added a commit that referenced this pull request Aug 1, 2026
* chore: warn about upcoming CocoaPods deprecation for iOS

Give CocoaPods users a heads-up before the actual removal (staged in
#1352) lands, pointing them at SPM as the migration path.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LTc7FjqtGsy2MFcvfBftJ4

* chore: link PR #1353 in changelog deprecation entry

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LTc7FjqtGsy2MFcvfBftJ4

* Apply suggestions from code review

Co-authored-by: LucasZF <lucas-zimerman1@hotmail.com>

---------

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant