Skip to content

Add configuration for Xcode Cloud - #6294

Merged
TinyKitten merged 2 commits into
devfrom
chore/xcode-cloud
Jun 20, 2026
Merged

TinyKitten merged 2 commits into
devfrom
chore/xcode-cloud

Conversation

@TinyKitten

@TinyKitten TinyKitten commented Jun 20, 2026 •

Copy link
Copy Markdown
Member

概要

最近EASのビルドがなぜかAppleとの通信で失敗することがあるので必要なときにXcode Cloudが使えるようにした

変更の種類

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

変更内容

テスト

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

関連Issue

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

Summary by CodeRabbit

  • Chores
    • iOS の開発環境セットアップ手順を改善し、ビルド前の初期化を自動化しました。

@TinyKitten TinyKitten self-assigned this Jun 20, 2026
@github-actions github-actions Bot added the ios label Jun 20, 2026
@coderabbitai

coderabbitai Bot commented Jun 20, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 612a1d24-020f-4766-81c0-f5f6929f3ae5

📥 Commits

Reviewing files that changed from the base of the PR and between 41ab6a6 and 9239fb9.

📒 Files selected for processing (1)
  • ios/ci_scripts/ci_post_clone.sh
🚧 Files skipped from review as they are similar to previous changes (1)
  • ios/ci_scripts/ci_post_clone.sh

📝 Walkthrough

Walkthrough

ios/ci_scripts/ci_post_clone.sh が新規追加されました。環境変数 SENTRY_PROPERTIES_BASE64 を base64 デコードして ios/sentry.properties に書き込み、node@24 のインストール・リンク後に npm ci と pod install --repo-update を実行します。

Changes

iOS CI Post-Clone Script

Layer / File(s) Summary
ポストクローンセットアップスクリプト
ios/ci_scripts/ci_post_clone.sh
SENTRY_PROPERTIES_BASE64 を base64 デコードして sentry.properties を生成(失敗時は exit 1)し、続けて node@24 のインストール・リンク、npm ci、pod install --repo-update を順に実行するスクリプトを新規追加。

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~5 minutes

Poem

🐇 ぴょんとクローンして、
base64 をほどいて、
sentry.properties ができたよ!
node と pod を揃えて、
CI の準備は万端です 🌸

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning PR説明は必須セクション(概要、変更の種類、テスト)を含みますが、「変更内容」セクションが空欄であり、具体的な実装内容(ファイル追加、スクリプト機能の詳細)の説明が不足しています。 「変更内容」セクションに、ios/ci_scripts/ci_post_clone.shの追加内容、Sentry設定、brewやnpm/podのセットアップの詳細を記述してください。
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed プルリクエストのタイトルは「Add configuration for Xcode Cloud」で、変更内容の概要(Xcode Cloud向けの設定追加)を明確に伝えており、メインの変更を適切に要約しています。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/xcode-cloud

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

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@ios/ci_scripts/ci_post_clone.sh`:
- Around line 5-9: The code uses both set -e (which causes immediate exit on
failure) and manual $? error checking, creating dead code since the conditional
will never execute. Additionally, echo is less reliable than printf for
outputting data, especially secrets. Replace the multi-line conditional block
(lines 6-9 with the if statement checking $?) with a single-line approach using
printf '%s' instead of echo to pipe the base64-decoded output directly to the
sentry.properties file, relying on set -e for error handling and eliminating the
redundant manual error check.
- Around line 14-15: The npm ci and pod install --repo-update commands lack
explicit directory specifications and will fail when executed from the
ci_scripts folder in Xcode Cloud. Fix this by explicitly navigating to the
correct directories before running each command: use cd command to change to the
repository root before running npm ci (to access package-lock.json), and then
change to the ios directory before running pod install --repo-update (to access
the Podfile). Ensure each command is executed from its required working
directory to guarantee CI success.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 88eae98b-6d79-413c-90e9-fd84aa9dd619

📥 Commits

Reviewing files that changed from the base of the PR and between e9e21cc and 41ab6a6.

📒 Files selected for processing (1)
  • ios/ci_scripts/ci_post_clone.sh

Comment thread ios/ci_scripts/ci_post_clone.sh Resolved
Comment thread ios/ci_scripts/ci_post_clone.sh Resolved
@TinyKitten
TinyKitten merged commit f111b4c into dev Jun 20, 2026
2 checks passed
@TinyKitten
TinyKitten deleted the chore/xcode-cloud branch June 20, 2026 10:19
@TinyKitten TinyKitten mentioned this pull request Jun 21, 2026
6 of 9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant