Skip to content

docs: fix the CocoaPods iOS setup and Android versions in the README - #151

Merged
thomson-t merged 1 commit into
mainfrom
docs/cocoapods-setup-and-android-versions
Oct 27, 2026
Merged

thomson-t merged 1 commit into
mainfrom
docs/cocoapods-setup-and-android-versions

Conversation

@thomson-t

@thomson-t thomson-t commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Why

Apps that set up the plugin on iOS with CocoaPods by following the README fail to build on current Xcode, because one of the mParticle pods declares a lower minimum iOS version than a library it depends on. The README's Android steps also name an older version of the mParticle Android libraries than the plugin uses. Once this lands, the README's CocoaPods steps build as written and its Android versions match the plugin.

Programme

Follow-up to the 2.3.0 release (mParticle/mparticle-flutter-sdk#147, the Swift Package Manager change, and mParticle/mparticle-flutter-sdk#150, the release), found while checking the published package from new apps. There is no ticket.

What changes

The README's CocoaPods snippet now includes a post_install block that raises any pod's deployment target below 15.6 to 15.6 and leaves higher ones alone, and Troubleshooting lists the Compiling for iOS 15.0, but module 'RoktContracts' has a minimum deployment target of iOS 15.6 error. The Android snippet moves from 6.0.0 to 6.1.9. The CocoaPods CI job's Podfile uses the same block, so CI builds what the README shows. pub.dev shows the new README with the next plugin release.

Linked work

Related: mParticle/mparticle-flutter-sdk#143, the Android update to 6.1.9.

Rollout

Nothing changes in production; if this is wrong, revert the pull request.

Risks

  • The CocoaPods CI job's Podfile changes; the same block built locally at iOS 15.6, and at 16.0 pod install kept the higher targets; we would see a failing CocoaPods job on this pull request.

Risk class: low.

Who

Written by: an automated coding agent (Claude Code), at the request of an SDK engineer, after checking the 2.3.0 release.
Code reviewed before opening: an automated review agent; its suggestion to say the post_install block replaces the one Flutter generates was applied. A review comment on this pull request, that the block lowered pods declared above 15.6, was addressed by raising lower targets only. No person yet.
Design reviewed before opening: no one.
Decision this implements: the requesting SDK engineer asked for this fix on 27 October 2026; there is no public record.
Checked: on 27 October 2026 with Xcode 27, a new Flutter 3.47.7 app using 2.3.0 with Swift Package Manager off failed with the old snippet and built with the post_install block, linking each SDK class once and registering the Rokt kit at launch. With platform :ios, '16.0' the block raised the pods below 15.6 and kept the two targets at 16.0; a new app's Android build resolves android-core 6.1.9.
Not checked: Xcode versions before 27, and Flutter versions before 3.47 on Xcode 27.

Size

Hand-written: about 25 lines in 2 files.
Generated: none.

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing blocking. The comments below are optional suggestions. There is no need to push a fix for them before merging.

Comment thread README.md Resolved
@thomson-t
thomson-t force-pushed the docs/cocoapods-setup-and-android-versions branch from 356d72f to 65fd69e Compare October 27, 2026 17:29
Following the README's CocoaPods snippet failed to build: the
mParticle-Apple-SDK pod declares iOS 15.0 but depends on RoktContracts,
which requires 15.6. Show a post_install block that raises any pod's
deployment target below 15.6 to 15.6, and add the error to
Troubleshooting. Pods that need a later iOS keep their own target. The
CocoaPods CI job uses the same block, so it builds what the README shows.

The Android snippet still pointed at 6.0.0 of the mParticle Android SDK
and Rokt kit while the plugin uses 6.1.9; apps should match it.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@thomson-t
thomson-t force-pushed the docs/cocoapods-setup-and-android-versions branch from 65fd69e to cc1ad0e Compare October 27, 2026 17:35
@thomson-t
thomson-t merged commit 22416c7 into main Oct 27, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants