Pass the Apple ID to fastlane's signing steps - #590
Merged
Merged
Conversation
`fastlane/Appfile` is gitignored, so `get_certificates` and each `get_provisioning_profile` call had no Apple ID and prompted for it, four times per `ios release` run. Pass `username:` explicitly, as `latest_testflight_build_number` and `upload_to_app_store` already do, and give the `upload` lane the same credentials as the release upload. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Summary
ios releaseasked for the Apple ID username four times per run: once forget_certificatesand once for each of the threeget_provisioning_profilecalls.fastlane/Appfileis gitignored (since #459), so those actions had no default, whilelatest_testflight_build_numberandupload_to_app_storealready passedusername:explicitly.This passes
username:to the signing steps the same way, and gives theuploadlane the sameusername:/team_id:as the release lane's upload so it doesn't prompt either. The existing.gitignoreforAppfileis left in place.The Apple ID password and 2FA are still needed interactively (or from fastlane's saved session), so
ios releasestill has to run from a terminal.Verification
bundle exec ruby -c fastlane/Fastfile→Syntax OKbundle exec fastlane lanes→ all four lanes listmake validatefor theValidate (local)statusNo lane was executed; the next
ios releaserun exercises it.🤖 Generated with Claude Code