Repository navigation
App Clipのimport Expoをinternalに揃えてiOSアーカイブの失敗を解消 - #6675
Conversation
Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_015p2Vn2rDGfNnYr8hs6dVb2
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 21 minutes This review is too large to run within your organization's remaining usage spending cap. Raise or remove your spending cap in the billing tab, then retry. How can I continue?After more reviews become available, a review can be triggered using the 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 configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
Comment |
概要
#6672 で App Clip の
AppDelegateを Swift 化した際、Expoの import にアクセスレベルを付けていなかったため、canary の iOS アーカイブが失敗していた(Build iOS Canary #31593391309)。これを解消する。変更の種類
変更内容
ios/CanaryAppClip/AppDelegate.swift/ios/ProdAppClip/AppDelegate.swiftのimport Expoをinternal import Expoへ変更(理由をコメントで併記)docs/ios-app-clip.mdに「Expoはinternal importで取り込む」節を追加失敗の内容
CocoaPods が各ターゲット向けに生成する
ExpoModulesProvider.swiftがinternal import Expoと書いているため、同じモジュール内でアクセスレベル指定の有無が混ざると Swift がこのエラーを出す。本体アプリのios/AppDelegate.swiftは元からinternal import Expoなので影響を受けておらず、#6672 で新規追加した App Clip 2 ファイルだけが素のimport Expoだった。ExpoModulesProvider.swiftは生成物なので、揃えるのは常に App Clip 側になる。ProdAppClipも同一内容だったため、放置すると本番ビルドでも同じ箇所で失敗する。今回まとめて修正している。テスト
npm run lintが通ることnpm testが通ることnpm run typecheckが通ることSwift のコンパイル自体は JS 側のチェックでは検証できないため、最終確認は本 PR を
devに取り込んだあとの canary ビルドとなる。回帰リスクは低い。変更は import 文のアクセスレベル指定のみで、
ExpoAppDelegateを使ったブートストラップ経路・ディープリンク処理・シンボルの可視性は変わらない(Expoの型はAppDelegateの内部実装でしか使っておらず、App Clip ターゲットは他モジュールから import されないためinternalで足りる)。本体アプリのターゲットには一切変更が無い。関連Issue
Refs #6672
スクリーンショット(任意)
Generated by Claude Code