Product Benefits Pricing Guides Docs About Contact us Try it out
Analytics tools

PostHog iOS CocoaPods Read-Only Install Tracking

CocoaPods goes read-only on 2 December 2026, so new PostHog iOS releases need Swift Package Manager. Track SDK versions to avoid analytics gaps.

· 3 min read

When a package manager stops accepting new releases, nothing breaks on the day. Your app keeps building and your events keep flowing. The damage comes later, when a fix for a crash or a data bug ships and your project never receives it, because it is still pulling from the old registry.

PostHog has said that CocoaPods is becoming read-only. A dry run is planned for 2 to 6 November 2026, during which new PostHog iOS SDK versions cannot be published there. The registry goes fully read-only on 2 December 2026, after which new iOS releases ship through Swift Package Manager only. PostHog notes that the Flutter package on pub.dev, the Android SDK and the web SDK are not affected.

Why This Matters

If your iOS app installs the PostHog SDK through CocoaPods, you will be frozen on the last version published there. Tracking keeps working, but you stop getting fixes, and your event data slowly drifts out of step with apps that have moved on.

Data Points to Track

  • sdk_version and sdk_name on every iOS event
  • install_method (CocoaPods, Swift Package Manager, other) from your build metadata
  • app_version and build_number
  • share_of_users_on_latest_sdk
  • events_per_session before and after migration
  • identify_success_rate and flush_failure_rate
  • crash_free_sessions for builds with the new SDK
  • migration_date as a dashboard annotation

Setup Steps

  1. Check your Podfile and any wrapper packages for a PostHog dependency.
  2. Note the pinned version and record your baseline event volume and identify rate.
  3. Remove the pod and add the SDK as a Swift Package Manager dependency in a test branch.
  4. Send the SDK version and install method as properties on every event.
  5. Run your core flows in a TestFlight build and compare events with the previous build.
  6. Release to a small share of users and watch for missing or duplicated events.
  7. Complete the rollout well before 2 December and annotate your dashboards.

Actionable Insights

If events per session drop in the new build, check that initialisation still runs at launch and that any custom configuration carried over.

A split in the user base between old and new SDK versions explains differences between cohorts. Segment by sdk_version before you compare them.

Cross-platform apps should check whether a wrapper handles the iOS dependency for you. Follow that wrapper’s upgrade notes rather than editing native files by hand.

Common Mistakes to Avoid

Do not wait for the final date. Do not change SDK version and tracking plan in the same release. Do not forget CI caches that still resolve the old pod.

Who Should Own This

Name one engineer to own the migration and one person to own the data check. Dependency changes are easy to treat as pure build work, but they can alter initialisation order, background behaviour and the way events are flushed. Agree in advance what a successful migration looks like, for example the same event volume per session, the same identify rate and no new crashes. Write those numbers down before you start, so the comparison afterwards is a fact, not a memory. Keep the old pod pinned in a separate branch until the new build has been live for a full release cycle.