build(ios): stop the archive asking for a development certificate - #536
Merged
Conversation
Platform: ios The project-level Release configuration pinned `CODE_SIGN_IDENTITY[sdk=iphoneos*] = "iPhone Developer"`, a Flutter template default under its pre-2021 name. The release workflow archives with `-configuration Release -allowProvisioningUpdates`, so every archive asked App Store Connect for an *iOS App Development* certificate and, finding none it could reuse, minted a new one. Ten of them accumulated — all "Created via API", all from the same key, the newest two dated the last two days — until the account hit its certificate limit and the archive failed with "Choose a certificate to revoke", followed by "No profiles for 'com.exptech.dpip.dpip' were found". The second error is the one people chase; the first is the cause. All three configurations are already `CODE_SIGN_STYLE = Automatic`, and the Runner target carries no identity of its own, so removing the line lets automatic signing pick a distribution identity for an archive — which is what an App Store build needed all along. Debug and Profile keep theirs: a local build is meant to be signed for development. The reasoning is here rather than beside the setting because Xcode rewrites project.pbxproj and would not keep a comment in it.
|
✅ OpenCodeReview: Review skipped: no items were selected. |
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.
Platform: ios
The project-level Release configuration pinned
CODE_SIGN_IDENTITY[sdk=iphoneos*] = "iPhone Developer", a Flutter template default under its pre-2021 name. The release workflow archives with-configuration Release -allowProvisioningUpdates, so every archive asked App Store Connect for an iOS App Development certificate and, finding none it could reuse, minted a new one.Ten of them accumulated — all "Created via API", all from the same key, the newest two dated the last two days — until the account hit its certificate limit and the archive failed with "Choose a certificate to revoke", followed by "No profiles for 'com.exptech.dpip.dpip' were found". The second error is the one people chase; the first is the cause.
All three configurations are already
CODE_SIGN_STYLE = Automatic, and the Runner target carries no identity of its own, so removing the line lets automatic signing pick a distribution identity for an archive — which is what an App Store build needed all along. Debug and Profile keep theirs: a local build is meant to be signed for development.The reasoning is here rather than beside the setting because Xcode rewrites project.pbxproj and would not keep a comment in it.
這個 PR 做了什麼
相關 issue
怎麼驗
檢查清單
tool/check/commits.sh origin/main..HEAD通過—— commit 訊息就是更新日誌,格式見 commit.md
mise exec -- flutter analyze與mise exec -- flutter test通過AppLocalizations,沒有寫死AppSpacing/AppRadius/AppMotion,深色模式看過,文字對比度可接受