[3/4] chore(samples): Remove CocoaPods sample and podspec tooling, making SPM the sole Apple sample path#558
Merged
buenaflor merged 0 commit intoJun 10, 2026
Conversation
Contributor
Instructions and example for changelogPlease add an entry to Example: ## Unreleased
### Features
- Remove CocoaPods sample and podspec tooling, making SPM the sole Apple sample path ([#558](https://github.com/getsentry/sentry-kotlin-multiplatform/pull/558))If none of the above apply, you can opt out of this check by adding |
2b44fe4 to
0fca03c
Compare
0fca03c to
df55744
Compare
b654bf8 to
f5cef29
Compare
df55744 to
9ead63f
Compare
50ba5fb
into
feat/spm4kmp-phase1-migration
11 of 13 checks passed
f5cef29 to
50ba5fb
Compare
9ead63f to
50ba5fb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 3 of the stacked spm4Kmp migration (stacked on #557). Now that the SDK's internal Apple build no longer uses the Kotlin CocoaPods plugin, this PR removes the dead CocoaPods sample and internal build tooling and makes the SPM sample the sole Apple sample validation path.
Why: keeping the CocoaPods sample and SDK podspec around after the spm4Kmp switch is pure dead weight — the SDK module no longer applies the
native.cocoapodsplugin, sogenerateDummyFramework/syncFrameworkandsentry_kotlin_multiplatform.podspecare unused. Consolidating on the SPM sample keeps a single, representative consumer build in CI.What changed:
MakefilebuildAppleSamplesnowxcodebuilds the SPM sample (kmp-app-spm/iosApp.xcodeproj, schemeiosApp, Debug/iphonesimulator/arm64) and dropspodInstall/pod update.kotlin-multiplatform.ymlinherits this viamake buildAppleSamples;test-samplesis unaffected.kmp-app-cocoapodssample entirely (itssettings.gradle.ktsincludes and.run/*-cocoapods.run.xml), and repointedkmp-app-spm:desktopAppto the SPMsharedmodule (it had a stray dependency on the cocoapods shared module).sentry_kotlin_multiplatform.podspecand the unusednative.cocoapodsplugin classpath entry (rootbuild.gradle.kts+Config.cocoapods).scripts/update-cocoa.shto bumpConfig.kt, the plugingradle.properties, and the SPM sample's SwiftPM pin inproject.pbxproj, then refreshPackage.resolvedviaxcodebuild -resolvePackageDependencies(dropped the podspec/generateDummyFramework/pod updatesteps).scripts/bump-version.shatConfig.ktfor the Cocoa compatibility-table version (podspec is gone) and narrowed the sample prepare scripts tokmp-app-spm.Consumer-facing Gradle plugin CocoaPods support (
installSentryForCocoapods,CocoapodsAutoInstallExtension,CocoaFrameworkLinker) is intentionally untouched.Verification: SPM sample iOS
xcodebuildBUILD SUCCEEDED (Xcode 26.1.1),./gradlew build -p sentry-samples, andspotlessApply/detekt/apiCheckall green;update-cocoa.sh get-versionresolves correctly.Note: the
watchosArm32re-enable is still tracked in the earlier stack PR and is out of scope here.Made with Cursor