Please see the main PostHog docs.
Specifically, the iOS integration details.
To get started
- Install XCode
- Install CocoaPods
- Run
pod install
- If you face segmentation faults on M1 Macs, this might be a potential cause
- To fix, run
gem install --user-install ffi -- --enable-libffi-alloc
- Open the file
PostHog.xcworkspace
workspace in XCode - Run tests using the test navigator . Skip TvOS tests by changing the target in the top middle bar from
PostHog
toPostHogTests
.