Skip to content

App Clipのimport Expoをinternalに揃えてiOSアーカイブの失敗を解消 - #6675

Merged
TinyKitten merged 1 commit into
devfrom
fix/app-clip-expo-import-access-level
Aug 12, 2026
Merged

TinyKitten merged 1 commit into
devfrom
fix/app-clip-expo-import-access-level

Conversation

@TinyKitten

Copy link
Copy Markdown
Member

概要

#6672 で App Clip の AppDelegate を Swift 化した際、Expo の import にアクセスレベルを付けていなかったため、canary の iOS アーカイブが失敗していた(Build iOS Canary #31593391309)。これを解消する。

変更の種類

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

変更内容

  • ios/CanaryAppClip/AppDelegate.swift / ios/ProdAppClip/AppDelegate.swift の import Expo を internal import Expo へ変更(理由をコメントで併記)
  • docs/ios-app-clip.md に「Expo は internal import で取り込む」節を追加

失敗の内容

/Users/runner/work/MobileApp/MobileApp/ios/CanaryAppClip/AppDelegate.swift:9:8: error: ambiguous implicit access level for import of 'Expo'; it is imported as 'internal' elsewhere
import Expo
       ^
internal
/Users/runner/work/MobileApp/MobileApp/ios/Pods/Target Support Files/Pods-TrainLCD-CanaryTrainLCD-CanaryAppClip/ExpoModulesProvider.swift:10:1: note: imported 'internal' here
internal import Expo
^
** ARCHIVE FAILED **

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 が通ること
npm run lint       Checked 631 files. No fixes applied.
npm test           218 suites / 2310 tests 全て passed
npm run typecheck  エラーなし

Swift のコンパイル自体は JS 側のチェックでは検証できないため、最終確認は本 PR を dev に取り込んだあとの canary ビルドとなる。

回帰リスクは低い。変更は import 文のアクセスレベル指定のみで、ExpoAppDelegate を使ったブートストラップ経路・ディープリンク処理・シンボルの可視性は変わらない(Expo の型は AppDelegate の内部実装でしか使っておらず、App Clip ターゲットは他モジュールから import されないため internal で足りる)。本体アプリのターゲットには一切変更が無い。

関連Issue

Refs #6672

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


Generated by Claude Code

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

coderabbitai Bot commented Aug 12, 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: 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 @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: 92784f61-a4da-45e6-8eb3-f4e0feec05eb

📥 Commits

Reviewing files that changed from the base of the PR and between df816ac and 68af689.

📒 Files selected for processing (3)
  • docs/ios-app-clip.md
  • ios/CanaryAppClip/AppDelegate.swift
  • ios/ProdAppClip/AppDelegate.swift

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

@github-actions github-actions Bot added the ios label Aug 12, 2026
@TinyKitten
TinyKitten merged commit 5b1dfcc into dev Aug 12, 2026
5 checks passed
@TinyKitten
TinyKitten deleted the fix/app-clip-expo-import-access-level branch August 12, 2026 12:08
This was referenced Aug 12, 2026
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.

2 participants