Skip to content

chore(tooling): Add iOS simulator support to the verify-pr skill - #7104

Open
antonis wants to merge 3 commits into
chore/verify-pr-skillfrom
chore/verify-pr-skill-ios
Open

antonis wants to merge 3 commits into
chore/verify-pr-skillfrom
chore/verify-pr-skill-ios

Conversation

@antonis

@antonis antonis commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

📜 Description

Extends the verify-pr skill from #7100 to the iOS simulator. Stacked on #7100; the base switches to main once it merges.

  • references/ios.md (new): simulator setup, Pods, builds, and the Maestro differences from Android.
    • The installed Pods/ must match the tracked Xcode project's linkage, or the build fails with ld: library 'Pods-sentryreactnativesample' not found. Reinstall them with yarn pod-install-release-static at the start of every iOS run.
    • That script exits with code 2 even on success, because of its trailing grep $RN_SENTRY_POD_NAME.
    • pod install rewrites the tracked project.pbxproj and PrivacyInfo.xcprivacy; the final restore puts them back.
    • Maestro's back does nothing on iOS, and tab labels can't be tapped by text: tap the tab icons by test ID.
    • Content in the Playground tab is invisible to Maestro by text, so views there need a testID.
  • SKILL.md:
    • Covers both platforms, and says to run every platform the PR's native changes touch.
    • Documents the iOS switch to JS init (the sentryDisableNativeStart launch argument).
    • Saves the PR's diff to a patch file before reversing it.
    • Defines verify.commit for both runs.
    • Search retries pass fresh: true.
    • The final restore includes the files pod install rewrites, and shuts down booted devices.
  • references/evidence.md:
    • Screenshot attachments are read back from Sentry with get_event_attachment.
    • Masking checks use a two-color probe, because a redaction is one flat color.
    • Attachment download URLs carry a token and must stay out of reports.
  • Example flow: back replaced with a tap on the Errors tab icon, so it runs on both platforms.
  • Sample: the Playground tab gets a two-color view inside the existing <Sentry.Mask> demo and a "Capture exception with masks" button. The view is neither text nor an image, so only <Sentry.Mask> can hide it in an error screenshot. Needed to verify fix(ios): Honor Sentry.Mask in error screenshots #6974.

💡 Motivation and Context

Closes #7101.

💚 How did you test it?

A fresh agent, given only the skill, verified both PRs on an iPhone 17 Pro simulator (iOS 26.5, New Architecture, release builds). Both reached the verdicts reached by hand, first try, with no human steps.

The 11 findings from that run are folded into the skill in this PR. Clean iOS builds take about 2.5 minutes after a Pods install, and native-only rebuilds about 45 s. oxlint passes on the sample change.

📝 Checklist

  • I added tests to verify changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • All tests passing.
  • Public API changes reviewed by another Mobile SDK team member or implemented according to the develop docs spec.
  • No breaking changes.

🔮 Next steps

  • Run the updated example flow on Android: the tab-icon tap that replaced back is verified on iOS only.
  • iOS real devices and CI.

🤖 Generated with Claude Code

antonis and others added 3 commits November 24, 2026 15:07
From verifying #7087 and #6974 on the iOS simulator: Pods setup and the
files pod install rewrites, the iOS init path, Maestro differences (no
`back`, tab icons and the Playground tab need ids), reading screenshot
attachments back from Sentry, and a two-color probe for masking checks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Save the revert as a patch file, compare dist/ against packages/core/src,
define verify.commit for both sides, reinstall Pods every iOS run, shut
down booted devices, and keep attachment URLs out of reports.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A two-color view inside the existing <Sentry.Mask> demo, plus a button
that captures an exception with the demo on screen. The view is neither
text nor an image, so only <Sentry.Mask> can hide it in the event's
screenshot; a masked probe is one flat color. Used to verify #6974.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Semver Impact of This PR

⚪ None (no version bump detected)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


  • chore(tooling): Add iOS simulator support to the verify-pr skill by antonis and claude in #7104
  • chore(tooling): Add verify-pr skill for on-device PR verification by antonis and claude in #7100
  • ci(ios): Build the SwiftPM app on more React Native versions by alwx in #7096
  • chore(tooling): Remove Cursor Bugbot review guidelines by antonis and claude in #7090
  • fix(core): Capture uncaught render errors on React Native 0.78+ by alwx in #7078
  • ci: Fix stale high_risk_code paths in file-filters by antonis and claude in #7091
  • ci(e2e): Fix legacy Android e2e jobs building New Architecture by antonis and claude in #7092
  • chore(deps): update Android SDK to v8.65.1 by github-actions in #7089
  • fix(core): Remove native scope tags set to an empty value by antonis and claude in #7087
  • feat(ios): Add metricKitHangReportingMode option for MetricKit hang flame graphs by alwx in #7059
  • chore(deps): bump getsentry/craft from 3.12.0 to 3.13.0 by dependabot in #7083
  • chore(deps): bump getsentry/craft/.github/workflows/changelog-preview.yml from 3.12.0 to 3.13.0 by dependabot in #7082
  • chore(deps): bump getsentry/github-workflows/danger from 6bf4a27612e388f9c113d64f75e25190e814b414 to bce11fe6eaa86dbb9d360ab45a96e659828877f0 by dependabot in #7081
  • chore(deps): bump actions/create-github-app-token from 3.3.0 to 3.4.0 by dependabot in #7085
  • chore(deps): bump ruby/setup-ruby from 1.338.0 to 1.342.0 by dependabot in #7084
  • chore(sample): Remove unused Detox setup from the React Native sample by antonis and claude in #7072
  • ci(ios): Build TestFlight sample with Xcode 27 by philprime with sentry-junior in #7065
  • perf(android): Create SDK view managers on demand by alwx in #7049
  • fix(core): Remove web Replay and Feedback from native bundles by default by huextrat, claude and antonis in #7062
  • fix(core): Define UnsafeObject locally instead of deep importing it by alwx in #7061
  • chore(deps): update Android SDK to v8.65.0 by github-actions in #7058

🤖 This preview updates automatically when you update the PR.

@github-actions

Copy link
Copy Markdown
Contributor
Fails
🚫 Pull request is not ready for merge, please add the "ready-to-merge" label to the pull request

Generated by 🚫 dangerJS against 5c70962

@antonis
antonis marked this pull request as ready for review November 24, 2026 15:13
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.

1 participant