Skip to content

chore: add iOS source-map fixture#2747

Merged
ablaszkiewicz merged 9 commits into
mainfrom
ab/chore/ios-source-maps-fixture
Jul 16, 2026
Merged

chore: add iOS source-map fixture#2747
ablaszkiewicz merged 9 commits into
mainfrom
ab/chore/ios-source-maps-fixture

Conversation

@ablaszkiewicz

@ablaszkiewicz ablaszkiewicz commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

ablaszkiewicz and others added 7 commits July 11, 2026 10:09
The source-maps upload only fires on Release builds (dSYMs + the upload
phase are Release-only), so the shared scheme's Run action now uses the
Release configuration — testing the flow needs no scheme fiddling.
xcuserdata is per-user Xcode state; ignore it so wizard test runs leave
the tree clean.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Two fixtures, one per package manager, so both wizard paths get
exercised end-to-end:

- ios-pod: the existing CocoaPods fixture, renamed. Exercises the hard
  path — .xcworkspace, pod install, Pods-owned baseConfigurationReference
  (the xcconfig chaining dance).
- ios-spm: new fixture, same app wired via Swift Package Manager
  (XCRemoteSwiftPackageReference to posthog-ios). Exercises the default
  modern path — no workspace, no generated xcconfig, base-config slot
  free. Distinct bundle id (com.example.SourceMapExampleSPM) so releases
  and symbol sets don't collide with the pod fixture.

Both ship the same pre-source-maps baseline: PostHog SDK installed and
configured, Release run configuration in the shared scheme, script
sandboxing off, no dSYM/upload wiring — that's the wizard's job.
ios-spm verified with a headless Release simulator build.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
SourceMapExamplePods / SourceMapExampleSPM — project, target, scheme,
bundle id, and app struct renamed so the fixtures are distinguishable in
Xcode, PostHog releases, and symbol sets. The rendered view labels the
variant. PostHog.xcconfig is gitignored in both fixtures — it holds the
personal API key and must never be committed. Both verified with
headless Release simulator builds.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@ablaszkiewicz
ablaszkiewicz marked this pull request as ready for review July 15, 2026 18:37
@ablaszkiewicz
ablaszkiewicz requested a review from a team as a code owner July 15, 2026 18:37

@cat-ph cat-ph left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good! just wondering, should we keep the projectToken an actual token in there?

@gewenyu99 gewenyu99 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noice, I have very little clue what's going on in the apps themselves but it's all test fixtures

@ablaszkiewicz
ablaszkiewicz merged commit b38091d into main Jul 16, 2026
10 checks passed
@ablaszkiewicz
ablaszkiewicz deleted the ab/chore/ios-source-maps-fixture branch July 16, 2026 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants