When a bug appears only after a release, the first question is always “what changed in the build?” Without build details on your analytics events, the answer is a guess. A crash spike might come from your code, or from the Xcode version your team upgraded to the same week.
PostHog iOS SDK 3.91.0 helps here. The Application Installed and Application Updated events now carry $app_build_xcode and $app_build_sdk, which record the Xcode version and the iOS SDK version the app was built with. That gives you a built-in record of your toolchain for every release.
Data Points to Track
- $app_build_xcode: the Xcode version used to build the app
- $app_build_sdk: the iOS SDK version the app was built against
- $app_version: your marketing version, for grouping
- $app_build: your build number
- os_version: the iOS version on the device
- previous_version: from the update event, to see upgrade paths
- crash_free_rate: by build toolchain
- cold_start_ms: by build toolchain
- sdk_version: the PostHog SDK version in use
Setup Steps
- Upgrade the PostHog iOS SDK to 3.91.0 or later.
- Ship a release and wait for
Application Updatedevents to arrive. - Confirm the properties
$app_build_xcodeand$app_build_sdkappear on those events. - Create a breakdown of installs and updates by
$app_build_xcode. - Join build data to health metrics by grouping crash and performance events on the same app build.
- Save the view as a dashboard so every release is checked against its toolchain.
- Note old releases have no values, so treat missing data as “before 3.91.0”, not as an error.
Actionable Insights
If a crash rate or launch time worsens in one build and that build is the first one compiled with a new Xcode version, you have a strong lead. Compare it against the previous build before blaming a feature.
A mix of toolchains across releases shows how disciplined your build process is. If hotfixes are built on a different machine from main releases, you may see differences that have nothing to do with your code.
Watch for users who stay on old builds. The properties help you see how many people still run apps compiled with an older SDK, which matters when Apple raises minimum build requirements for the App Store.
Common Pitfalls
Do not expect the properties on every event. They sit on install and update events, so you need to link them to later behaviour through the user or the app build number.
Do not treat Xcode version as a cause on its own. Check that the change lines up with other things, such as dependency upgrades or a new minimum iOS target.
Why Product Teams Should Care
Release quality is not only about features. The tools used to produce a build can alter behaviour in small ways, and a clear record turns long debugging sessions into a quick comparison. It also supports release notes and audits.
Testing Checklist
Build a test app with the new SDK, install it, then upgrade it. Check that both events include the two properties and that the values match the Xcode version on your build machine. Repeat after changing Xcode versions to confirm the value changes.