Repository navigation
fix(cli): Keep the iOS wizard's changes in XcodeGen's project.yml - #2801
Merged
Merged
Conversation
For an XcodeGen project, `sentry wizard ios` now prints the full `project.yml` block that keeps its changes across `xcodegen generate`: the Sentry package and target dependency, a `postBuildScripts` entry with the wizard's debug-symbol upload script, and the `DEBUG_INFORMATION_FORMAT` and `ENABLE_USER_SCRIPT_SANDBOXING` settings. It shows this whether or not the package linked. Co-Authored-By: Antonis Lilis <antonis.lilis@sentry.io>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
antonis
marked this pull request as ready for review
December 2, 2026 15:01
antonis
approved these changes
Dec 2, 2026
This branch was successfully deployed
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.
This follows #2792. Re-testing that fix on an XcodeGen project showed that
xcodegen generatealso drops the wizard's other.xcodeprojchanges: the "Upload Debug Symbols to Sentry" build phase andENABLE_USER_SCRIPT_SANDBOXING = NO. No dSYM was uploaded, so crashes arrived unsymbolicated (native_missing_dsym).DEBUG_INFORMATION_FORMAT = dwarf-with-dsymsurvived only because it is XcodeGen's Release default. A project where the package did link loses that link on regeneration too.For every XcodeGen project (a
project.ymlnext to the.xcodeproj, detected as before),sentry wizard iosnow prints oneproject.ymlblock for the target:packages:and the target'sdependencies:, as in fix(cli): Warn when the iOS wizard can't link the Sentry package #2792, with the repository URL and version fromsentry-swift-package.ts.postBuildScripts:with aname: Upload Debug Symbols to Sentryentry. ItsinputFiles:entry is the path the wizard adds to the build phase, and itsscript: |is the script the wizard writes:getRunScriptTemplatewith the same org and project slugs anduploadSourcevalue.settings: base:withDEBUG_INFORMATION_FORMAT: dwarf-with-dsymandENABLE_USER_SCRIPT_SANDBOXING: "NO", matchingsetDebugInformationFormatAndSandbox."NO"is quoted so YAML doesn't read it as a boolean.The block ends with "Then run
xcodegen generate."xcodegen generatedrops these changes unless they're added toproject.yml, and the run still ends with the success message.project.ymlare unchanged.Supporting changes:
templates.tsexportsscriptInputFile, the input path without quotes.scriptInputPathis now built from it.configure-xcode-project.tsgives theuploadSourcevalue it already passed a name,UPLOAD_SOURCE, so the printed script uses the same value as the build phase.XcodeGen expands
${VAR}inproject.ymlonly for variables set when it runs and leaves unknown ones as they are, so${DWARF_DSYM_FOLDER_PATH}and the other build-time variables ininputFilesreach the build phase unchanged.The new
xcodegen-frameworks-build-phasefixture isxcodegen-no-frameworks-build-phaseplus a Frameworks build phase, so the package links.via Antonis Lilis.
--
View Session [Sentry]