Skip to content

iOS自動署名用の開発証明書をCIへ導入 - #6524

Merged
TinyKitten merged 1 commit into
devfrom
fix/ios-ci-development-certificate
Aug 3, 2026
Merged

TinyKitten merged 1 commit into
devfrom
fix/ios-ci-development-certificate

Conversation

@TinyKitten

Copy link
Copy Markdown
Member

概要

iOS Canary/ProductionのAutomatic signingに必要なApple Development証明書をCIへ導入し、全ターゲットのアーカイブ署名設定を修正します。

変更の種類

  • バグ修正
  • 新機能
  • リファクタリング
  • ドキュメント
  • CI/CD
  • その他

変更内容

  • Canary/Productionのアプリ、Watch App、Watch App Extension、Watch Widget、Live Activity、App ClipのRelease署名IDをApple Developmentへ戻しました。
  • 両iOS workflowで、Apple Development証明書とApple Distribution証明書を秘密鍵込みでCI keychainへimportします。
  • archive開始前に両方のcodesigning identityが使用可能か検証し、証明書または秘密鍵の不足を明確なエラーとして報告します。
  • 成功/失敗にかかわらず両証明書ファイルと一時keychainを削除します。
  • 必要なGitHub Actions Secretsと署名フローをドキュメントへ追記しました。

根本原因は、Automatic signingによるarchiveがApple Development identityを必要とする一方、CIにはDistribution証明書しかなかったことです。Release設定またはコマンドラインからApple Distributionを指定すると、Automatic signing for developmentと競合して全6 Canaryターゲットでexit 65になっていました。archiveはDevelopment、TestFlight exportはDistributionで再署名する構成へ統一します。

回帰リスクはiOSのRelease archive/export署名に限定されます。CanaryとProductionの全12ターゲットを機械的に検査し、Debug設定は変更していません。

テスト

  • npm run lint が通ること
  • npm test が通ること
  • npm run typecheck が通ること

実行済み:

  • npm run lint: 604 files checked、修正なし
  • npm test -- --runInBand: 201 suites/2169 tests成功
  • npm run typecheck: エラーなし
  • 両iOS workflowのYAML解析
  • 全workflow runブロックのBash構文検査
  • Canary/Production全12 Release build configurationのAutomatic signing/Apple Development設定検査
  • git diff --check

実際のarchive/TestFlight uploadは、GitHub ActionsのmacOS runnerで確認します。

関連Issue

なし

スクリーンショット(任意)

UI変更なし

@TinyKitten TinyKitten self-assigned this Aug 3, 2026
@coderabbitai

coderabbitai Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You’ve reached a temporary PR review limit under our Fair Usage Limits Policy.

Your recent review volume is higher than typical usage, so adaptive limits are currently applied.

Next review available in: 4 minutes

Your organization has reached its usage spending cap. Adjust your spending cap in the billing tab.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 0b94e9ea-e948-4866-ba7d-3e142dcd0562

📥 Commits

Reviewing files that changed from the base of the PR and between f20e064 and bcf8584.

📒 Files selected for processing (4)
  • .github/workflows/build_ios_canary.yml
  • .github/workflows/build_ios_production.yml
  • docs/ios-build-workflows.md
  • ios/TrainLCD.xcodeproj/project.pbxproj

Comment @coderabbitai help to get the list of available commands.

@TinyKitten
TinyKitten merged commit de3f1ec into dev Aug 3, 2026
4 checks passed
@TinyKitten
TinyKitten deleted the fix/ios-ci-development-certificate branch August 3, 2026 11:35
@TinyKitten TinyKitten mentioned this pull request Aug 3, 2026
6 of 9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant