feat: add iOS native exception capture support#331
Open
marandaneto wants to merge 12 commits intomainfrom
Open
feat: add iOS native exception capture support#331marandaneto wants to merge 12 commits intomainfrom
marandaneto wants to merge 12 commits intomainfrom
Conversation
d8d81a9 to
4fd0635
Compare
marandaneto
commented
Mar 11, 2026
| #endif | ||
|
|
||
| // Configure error tracking | ||
| #if os(iOS) || os(macOS) || os(tvOS) |
Member
Author
There was a problem hiding this comment.
@ioannisj should this be under only these 3 plastforms or all?
autocapture is only these 3 right, manual capture everything
so i guess the in app stuff makes sense for all platforms?
Member
Author
|
@ioannisj something to figure out here https://posthog.slack.com/archives/C07AA937K9A/p1773239632233809?thread_ts=1773236734.446239&cid=C07AA937K9A |
marandaneto
commented
Mar 11, 2026
| ); | ||
| runOnlyForDeploymentPostprocessing = 0; | ||
| shellPath = /bin/sh; | ||
| shellScript = "# uncomment to upload mapping files to PostHog\n# POSTHOG_INCLUDE_SOURCE=1 ${PODS_ROOT}/PostHog/build-tools/upload-symbols.sh\n"; |
Member
Author
There was a problem hiding this comment.
@hpouillot uncomment this otherwise it wont trigger, had to remove it to make CI happy
marandaneto
commented
Mar 11, 2026
Comment on lines
+37
to
+41
| # needs device pairing - enable debug mode on the device | ||
| # make sure you have a valid team in Xcode, go to Signing & Capabilities | ||
| flutter devices | ||
| flutter run --release -d Manoel --verbose | ||
| # replace Manoel with your device's name/id |
Member
Author
There was a problem hiding this comment.
@hpouillot we need release mode and you cant run release mode on emulators
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.
💡 Motivation and Context
The
captureNativeExceptionsconfig option previously only supported Android. This PR adds iOS support, enabling automatic capture of native crashes (Mach exceptions, POSIX signals, and uncaught NSExceptions) via the PostHog iOS SDK'serrorTrackingConfig.autoCaptureAPI.💚 How did you test it?
captureNativeExceptions = truein the example app configiOS: missing line numbers - to figure out
Android: missing sources - expected
📝 Checklist
If releasing new changes
pnpm changesetto generate a changeset filereleaselabel to the PR