Repository navigation
chore(react-native-plugin)!: require posthog-ios 4.0 - #5237
Open
turnipdabeets wants to merge 3 commits into
Open
turnipdabeets wants to merge 3 commits into
turnipdabeets wants to merge 3 commits into
Conversation
turnipdabeets
added a commit
that referenced
this pull request
Oct 7, 2026
posthog-ios 4.0 isn't released yet; this PR keeps only the Xcode 26 CI lanes.
This was referenced Oct 7, 2026
posthog-ios 4.0 needs Xcode 26; package traits are left at their defaults.
turnipdabeets
force-pushed
the
chore/rn-plugin-posthog-ios-4-pin
branch
from
October 7, 2026 19:35
1e813ac to
0422ed4
Compare
5 of 23 tasks
… in the changelog
4 of 23 tasks
turnipdabeets
marked this pull request as ready for review
October 7, 2026 19:41
turnipdabeets
added a commit
that referenced
this pull request
Oct 7, 2026
* chore(react-native-plugin)!: require posthog-ios 4.0 and leave out its Surveys trait The plugin disables native surveys (React Native surveys are rendered in JS), so its Swift package depends on posthog-ios with only the SessionReplay and CrashReporting traits. The manifest moves to tools 6.2, which posthog-ios 4.0 requires anyway and which package traits need. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * ci(react-native-plugin): build CocoaPods lanes on Xcode 26 * chore(react-native-plugin): move the posthog-ios 4.0 pin to #5237 posthog-ios 4.0 isn't released yet; this PR keeps only the Xcode 26 CI lanes. --------- Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This was referenced Oct 7, 2026
dustinbyrne
approved these changes
Oct 7, 2026
Surveys are rendered in JS; traits need swift-tools 6.1+, and posthog-ios 4.0 already requires Xcode 26.
This branch has not been deployed
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.
Warning
Prep PR: CI is expected to fail until posthog-ios 4.0 is released. The iOS and macOS example builds can't resolve
4.0.0from CocoaPods or SwiftPM yet. Merge into #5194 last, once 4.0 is published and CI is green. Plugin 3.0 is released only after this PR.Problem
#5194 (plugin 3.0) keeps posthog-ios at 3.88.2. This is the follow-up that moves to posthog-ios 4.0, which needs Xcode 26 and raises the floors to iOS 15 and macOS 11 (the plugin already matches those in #5194).
Changes
posthog_ios_versionin the podspec and the floor inios/Package.swiftmove to4.0.0.check-spm-manifest.mjskeeps checking that they match.ios/Package.swiftdepends on posthog-ios withtraits: ["SessionReplay", "CrashReporting"], leaving outSurveys(PostHog/posthog-ios#916, #918). The plugin setsconfig.surveys = falseand renders surveys in JS, so native surveys were dead weight. Replay and crash autocapture need the other two traits. Folded in from chore(react-native-plugin): leave out posthog-ios's Surveys trait #5238.ios/Package.swiftmoves from tools 6.0 to 6.2. Traits need 6.1+, and posthog-ios 4.0 already requires Xcode 26 (Swift 6.2).Surveys. CocoaPods has no traits andposthog.useSpmpasses none, so both still get the full SDK. SwiftPM turns a trait back on if any other package depends on posthog-ios with the defaults; nothing breaks, the code just isn't dropped.examples/example-rn-native-pluginsimulator Debug build succeeded with no plugin warnings once chore(react-native-plugin): drop screenshotMode for posthog-ios 4.0 #5236 is applied.Before merging
screenshotMode) can merge into chore(react-native-plugin)!: Major Release v3 #5194 before this PR. It's only correct with posthog-ios 4.0, so 3.0 can't release without this PR.SessionReplay,CrashReportingandSurveystraits (feat(web-analytics): Add site_name in config and $site_name property #916/feat: Show warning if identifying with "distinct_id" #918 are merged into the 4.0 stack). Naming a trait that doesn't exist fails package resolution..changeset/rn-plugin-posthog-ios-4-cellular.md.Release info Sub-libraries affected
Libraries affected
Checklist
If releasing new changes
pnpm changesetto generate a changeset file🤖 Agent context
Autonomy: Human-driven (agent-assisted)
Made with Claude Code. Split out of #5226 so that PR (Xcode 26 CI lanes) can merge now, then split again for the traits change (#5238), which is now folded back in. The 4.0 build check merged #873 with the open 4.0 PRs locally, since 4.0 isn't tagged; #907 and #916 conflict on two color-util files there, so the iOS stack needs a rebase. Not tested: the
posthog.useSpmpath against 4.0, Release builds, running the app.🤖 Generated with Claude Code