fix: SPMプラグイン許可コマンドを全ワークフロー共通で実行する#150
Merged
Merged
Conversation
Upload Stg TestFlightワークフローでSwiftGenPlugin検証に失敗してarchiveが失敗していたため、defaults writeをswitch-caseの外に移動し全ワークフローで実行されるようにする。 Co-Authored-By: Claude Opus 4.7 <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.
経緯
Xcode Cloud の
Upload Stg TestFlightワークフローでアーカイブが失敗していた。ビルドログを確認したところ、SwiftGenPluginの Build Tool Plugin 検証で失敗しており、その直後に** ARCHIVE FAILED **となっていた。原因は
ci_post_clone.shの構造にあり、SPM プラグイン検証スキップ用のdefaults writeコマンドがVRTワークフローのケース内にしか存在せず、Upload Stg TestFlight/Upload For AppStoreワークフローでは実行されていなかった。実装内容
defaults write IDESkipPackagePluginFingerprintValidatationを switch-case の外側に移動し、全ワークフロー共通で実行するようにした。SwiftGenPluginはHometeResourcesターゲットで使用されており、VRTだけでなく TestFlight / App Store アップロード時のアーカイブビルドにも必要。今後新しいワークフローを追加した際にも漏れなくプラグインが許可されるよう、switch-case の外で必ず実行されるようにした。IDESkipMacroFingerprintValidationも追加: 今後 Macro を使うパッケージが追加された場合にも備えて、Macro の fingerprint 検証もスキップするようにした。確認内容
Upload Stg TestFlightワークフローを Xcode Cloud で実行し、SwiftGenPluginの検証で失敗せずアーカイブが完了することを確認するVRTワークフローが従来通り動作することを確認する🤖 Generated with Claude Code