Skip to content

Re-test sentry wizard on every mobile platform in its current state #7172

Done

Description

@antonis

Earlier rounds (RN-871, COCOA-2229, JAVA-857, DART-504) tested sentry wizard on fresh template apps and fixed what they found. This round confirms that nothing regressed, checks the newest changes in real apps, and covers harder project types. Results go in the comments.

Build: a packed npm build of toolkit main at 5ea6dcf7e or later, run as sentry wizard …. Note the exact commit.

Setup for every run

  • A real org token, and one Sentry project per platform: sentry-sdks/sentry-cocoa, sentry-sdks/sentry-android, sentry-sdks/sentry-react-native, sentry-sdks/sentry-flutter.
  • Xcode 27.2, JDK 17, Flutter 3.44.1. An iPhone 16 simulator, a Pixel 8 emulator, and a tvOS simulator where noted.
  • Token isolation for builds: unset SENTRY_AUTH_TOKEN, and point HOME at an empty folder, so sentry-cli can't fall back to ~/.sentryclirc. Note where hiding HOME breaks the tooling.
  • Reset each project to its pre-wizard state before every run. Use default answers unless noted.
  • Add one TEST ONLY handled error to each app, captured in Release builds, to check symbolication. Add a native crash where noted.

Checks for every project

  1. Wizard output and files: the questions and their order, the files written, and no "successfully added" message after a failure.
  2. Release build: it builds and uploads symbols (source maps, dSYMs, ProGuard and source bundles, or the Dart symbol map). Quote the build-log lines.
  3. Events: the Release error and the native crash arrive symbolicated with source context. The wizard's test event arrives only from Debug builds.
  4. Features with default answers: a tracing transaction (app start, plus navigation where the app has it), a profile when Profiling is yes, and a replay attached to an error when Session Replay is yes.
  5. Second run: nothing duplicated in code, build files, .gitignore or the plugin config, and no misleading errors.
  6. No terminal: sentry wizard <org>/<project> <integration> --tracing --profiling --logs --replay --no-mcp < /dev/null (plus --feedback for React Native). Record the exit code, and if it's 1, where it stopped and what was already applied.

Projects

Platform Project Extra checks
iOS Fresh Xcode 16+ SwiftUI app toolkit#2830: questions Tracing, Logs, Profiling, Session Replay; options.sessionReplay.* inside #if os(iOS) || os(tvOS); a replay attached to an error
Fresh UIKit app in Objective-C, with a Fastfile The Objective-C Replay lines inside #if TARGET_OS_IOS || TARGET_OS_TV compile. Answer no to Fastlane.
tvOS SwiftUI app Builds; profiling compiled out, Replay compiled in
macOS SwiftUI app (sandboxed) Builds; Replay and profiling don't break macOS; events arrive
XcodeGen iOS app project.yml block without the gutter; after merging and xcodegen generate, the dSYM uploads and events are symbolicated
An existing app that already uses sentry-cocoa and SentrySDK.start Detects the existing setup and doesn't add a second one
Android Fresh Android Studio app: Kotlin, Compose, Kotlin DSL, version catalog toolkit#2832: questions Tracing, Logs, Profiling, Session Replay; the two session-replay manifest keys; a replay attached to an error; io.sentry.data-collection.user-info
Fresh app: Java, Views, Groovy DSL, version catalog Same, in Java and Groovy
A project with two app modules (for example phone and Wear OS) Asks which module and sets up the chosen one
The Kotlin app with the shell on JDK 11 Warns about Gradle, keeps going, ends with "build verification failed"
React Native npx @react-native-community/cli init WizBare --version 0.88.1 --skip-spm toolkit#2831: questions Tracing, Profiling, Logs, Replay, Feedback; profilesSampleRate: 1.0; a profile arrives. toolkit#2829: token only in .env.sentry-build-plugin; Release uploads on iOS and Android. A JS error and a native crash symbolicated.
The same app without --skip-spm (SwiftPM) Whether iOS Release still fails on hermesc (sentry-react-native#5780), and whether HERMES_CLI_PATH works around it. Android works.
An older React Native app (0.76, CocoaPods) use_modular_headers! added (below 0.79), pod install works, Release uploads
A bare app in a monorepo (pnpm or Yarn workspaces, hoisted dependencies) The debug symbols phase finds its script; iOS and Android Release uploads work
A bare app with React Navigation Navigation transactions are expected to be missing (sentry-react-native#7165). Record what the wizard does and what arrives.
Expo npx create-expo-app@latest (Expo 58, Expo Router) Latest @sentry/react-native, app.json plugin, token in .env.local, Release through npx expo run:* uploads, navigation transactions when switching tabs on iOS and Android
The same with app.config.ts Instructions for the JS/TS config, no app.json patch
After npx expo prebuild, native folders committed Token in .env.sentry-build-plugin, no auth.token in sentry.properties, Release uploads
Flutter flutter create --org com.example wiz_flutter (has web/) ignore_missing, dart_symbol_map_path and upload_source_maps in sentry:; sample error only in Debug; obfuscated build + flutter pub run sentry_dart_plugin exits 0; obfuscated types readable
flutter create --platforms=android,ios (no web/) No upload_source_maps

Report

Activity

  1. self-assigned this
    on Dec 3, 2026
  2. linear-code commented on Dec 3, 2026

    @linear-code
  3. antonis commented on Dec 4, 2026

    @antonis
    ContributorAuthor

    Smoke test of the released Sentry CLI 4.0.1

    sentry@4.0.1 from npm (latest), installed with npm i -g (sentry --version says 4.0.1), not built from source. Xcode 27.2, JDK 17, Flutter 3.44.1, org sentry-sdks with one project per platform, SENTRY_AUTH_TOKEN unset, fresh projects, default answers.

    Blockers: none. All five platforms pass steps 1–3 as expected. The two runs that exit 1 stop at the known questions tracked in getsentry/toolkit#2840.

    Platform 1. Run with a terminal 2. Release build + TEST ONLY error 3. No terminal: exit code 3. Last output line
    iOS (SwiftUI, no Fastfile) ✅ Asks Tracing, Logs, Profiling, Replay, MCP; ends "Sentry was successfully added to your project!" ✅ dSYM and source bundle uploaded (checked with the API, see note 1). Error symbolicated to wizReleaseTest ContentView.swift:31, with a replay. 0 ◆ Sentry was successfully added to your project! Run your project to send your first event to Sentry. …
    Android (Kotlin, version catalog) ✅ "Successfully installed the Sentry Android SDK!" ✅ "File upload complete: UPLOADED … (Proguard mapping)". R8 build deobfuscated to wizReleaseTest MainActivity.kt:39, with a replay. 0 https://docs.sentry.io/platforms/android/ (the end of the success message)
    React Native 0.88.1 --skip-spm ✅ All questions, including pod install, Prettier and the test-event question; ends "Everything is set up!" ✅ With HOME hidden: iOS "File upload complete" plus "Uploaded 4 missing debug information files"; Android "File upload complete". wizReleaseTest App.tsx:51 on iOS and Android, with replays. 1, as expected, at the Prettier question (getsentry/toolkit#2840) └ The wizard needs an answer to this question, but its input ended. … Everything before it was applied: pod install ran, the token is in a gitignored .env.sentry-build-plugin (none in either sentry.properties), plus Sentry.init, Metro, the Xcode phases and Gradle.
    Expo (create-expo-app@latest) ✅ Ends "Everything is set up!" ✅ Through npx expo run:*: iOS "File upload complete" plus "Uploaded 8 missing debug information files"; Android "File upload complete". wizReleaseTest /src/app/_layout.tsx:41 on both, with replays. First run 0; second run 1, as expected First run: "Sentry is set up! …", then the issues link. Second run: stops at "The @sentry/react-native package is already installed. Do you want to update it to the latest version?" (getsentry/toolkit#2840).
    Flutter (flutter create) ✅ "Successfully installed the Sentry Flutter SDK!" ✅ Obfuscated APK; sentry_dart_plugin exit 0, "Dart symbol map upload summary: attempted=3, succeeded=3, failed=0". Type WizRelease401Error, wizDeepThrow main.dart:156, with a replay. 0 - Integrations: https://docs.sentry.io/platforms/dart/guides/flutter/integrations/

    npx @sentry/wizard -i reactNative: runs 9.2.0, not 9.1.0. npm's latest tag moved to 9.2.0. It starts with "Sentry Wizard is in maintenance mode. It is moving to the Sentry CLI as sentry wizard."

    Differences from the last retest on main:

    1. iOS upload phase output. The Debug Symbols phase is silent when the upload succeeds: it sends the CLI's output to /dev/null and only prints a warning on failure. It runs sentry, or npx --yes sentry when that isn't installed. There's no upload line in the build log, so I checked the upload with the API: the dSYM and the source bundle arrived at the build's time. Xcode also warns that the phase "will be run during every build because it does not specify any outputs".
    2. Uncommitted changes and no terminal. In a repository with uncommitted changes, a run without a terminal stops at "Do you want to continue anyway?" (the uncommitted-changes check) before anything else. Earlier retests committed between runs, so this is probably not new. Committing first, the Expo second run reaches the update question as expected.
    3. Projects with no Frameworks build phase. In an iOS project that has none (here one generated by XcodeGen), the wizard can't add the Sentry package: "Sentry setup is incomplete". Xcode's own template always has that phase, so the table uses a template-style project. The wizard could add the phase when it's missing.

    Unchanged: Android still writes send-default-pii when the Sentry project is named sentry-android (the known getsentry/toolkit#2807 edge case).

    Environment: the Expo Android Release needed more Gradle memory in gradle.properties (Metaspace), as in the last retest.

    Known issues, not retested: #7175, #5780, #6304, #7165.

  4. antonis commented on Dec 4, 2026

    @antonis
    ContributorAuthor

    Update on the known issues above: #7175 (iOS Release builds failing in hoisted monorepos) is fixed in #7182, merged today. It ships in the next @sentry/react-native release after 8.38.0. #7182 includes a before/after iOS Release build of a hoisted Yarn workspace, set up the way the wizards patch the bundle phase. No wizard change is needed. #5780, #6304 and #7165 are still open.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions