Repository navigation
Expo SDK 57に追随してiOSネイティブ設定を更新しビルド失敗を解消 - #6664
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MhW8RJSMmhFWUpSArfh3iG
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughiOSの最低デプロイメントターゲットを15.1から16.4へ更新しました。Expo、CocoaPods、Xcodeの設定を対象にしています。App Clipの ChangesiOS構成とApp Clipヘッダーの更新
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning Review ran into problems🔥 ProblemsGit: Failed to clone repository. Please run the Comment |
Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MhW8RJSMmhFWUpSArfh3iG
This was referenced Aug 12, 2026
Merged
5 of 9 tasks
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.
概要
Expo SDK 57 へのアップグレード (#6658) 以降、canary / production の iOS ビルドが失敗していた問題を修正します。#6658 は
ios/配下を一切更新していないため、ネイティブ側が SDK 57 の前提に追随できていませんでした。段階の異なる 2 つの失敗が連鎖しています。pod installが Expo モジュール全 35 件を解決できず exit 1(デプロイメントターゲット 15.1 < 要求 16.4)Archiveで App Clip がコンパイル不能(RCTAppDelegateなどの二重定義)失敗例: Build iOS Canary #4610
変更の種類
変更内容
1. iOS デプロイメントターゲットを 16.4 へ引き上げ
ios/Podfile.properties.jsonにios.deploymentTarget: "16.4"を追加(ios/Podfileのplatform :iosはこの値を参照する)ios/Podfileのフォールバック値を'15.1'から'16.4'へ更新し、SDK 57 のテンプレートと揃えたios/TrainLCD.xcodeproj/project.pbxprojのIPHONEOS_DEPLOYMENT_TARGETを、アプリ本体 2 ターゲット(ProdTrainLCD/CanaryTrainLCD)の Debug / Release 計 4 箇所で15.1から16.4へ引き上げapp.config.tsにios.deploymentTarget: '16.4'を宣言。SDK 56 以降はこれが正式な指定先で(expo-build-properties側の同名オプションは deprecated)、expo prebuild実行時に上記 2 ファイルへ同じ値が展開されるSDK 57 で
expo/expo-modules-coreほかの podspec が:ios => '16.4'に引き上げられた一方、本リポジトリは bare workflow でios/をコミット管理しており、ios/Podfileの当該行は SDK 54 期 (#5475) から変わっていませんでした。React Native 0.86 自体のmin_ios_version_supportedは 15.1 なので、制約を上げているのは Expo 側のみです。なお
RideSessionActivity(Live Activities 拡張、16.1)とプロジェクトレベルの既定値 12.0 は変更していません。前者は Pod をリンクしない App Extension で、拡張のデプロイメントターゲットがホストアプリより低いことは Xcode 上許容されます。後者は全 iOS ターゲットが明示値を持つため実効性がなく(watchOS ターゲットはWATCHOS_DEPLOYMENT_TARGETを使用)、いずれも今回の解決には不要なため差分を最小に留めています。2. App Clip の AppDelegate から
RCTAppDelegate.hの直接 import を削除ios/CanaryAppClip/AppDelegate.hおよびios/ProdAppClip/AppDelegate.hの#import <RCTAppDelegate.h>を削除し、<Expo/Expo.h>経由の解決に一本化(削除理由をコメントで明記)SDK 57 / RN 0.86 では prebuilt な React Core が使われ、
Pods/Headers/Public/にReact-RCTAppDelegate/とReact-Core-prebuilt/React_RCTAppDelegate/という同一クラスを含む 2 つのヘッダツリーが並存します。App Clip のAppDelegate.hは両方を 1 つの translation unit へ取り込んでいたため、RCTAppDelegate/RCTRootViewFactory/RCTRootViewFactoryConfigurationが duplicate interface definition となりmain.mとAppDelegate.mがコンパイルできませんでした。RCTAppDelegateは<Expo/Expo.h>→RCTAppDelegateUmbrella.h→React_RCTAppDelegate-umbrella.hの経路で得られるため、直接 import は不要です。本体アプリは
ios/AppDelegate.swift(ExpoAppDelegateベース)なのでこの問題の影響を受けず、失敗していたのは App Clip ターゲットのみでした。回帰リスクと緩和策
サポート端末が変わります。 アプリの最小 iOS バージョンが 15.1 から 16.4 へ上がるため、iOS 15 系が上限の端末(iPhone 6s / 6s Plus / 7 / 7 Plus / SE 第 1 世代、iPad Air 2 など)は以降のアップデート対象外になります。iOS 16.4 は iOS 16 に更新できる全端末へ配信済みのため、それ以外の端末は OS を更新すれば影響を受けません。これは Expo SDK 57 が課す制約であり、SDK を戻さない限り回避手段はありません。
App Clip 側の変更は import の削除のみで、
AppDelegateの継承関係・実装には手を加えていません。Prod / Canary の両 App Clip に同じ修正を入れているため、Build iOS Production側でも同じ失敗は起きません。テスト
ローカル(Linux)で実行:
CocoaPods / Xcode の検証は Linux では行えないため、
docs/ios-build-workflows.mdの「Safe dry-run」手順に従い、本ブランチに対して Build iOS Canary を TestFlight アップロード無効で実行しています。Install CocoaPods dependencies成功 →Archive canaryで App Clip のコンパイル失敗を検出** ARCHIVE SUCCEEDED **/ コンパイルエラー 0 件 / dSYM アップロードまで完了、TestFlight アップロードは想定どおりスキップ2 回目では本体ターゲット
CanaryTrainLCDの Swift コンパイルとリンク(Ld …/CanaryTrainLCD.app/CanaryTrainLCD)にも到達しています。1 回目は App Clip が本体の依存ターゲットであるため、そこで失敗した時点で本体の残り工程がスキップされていました。npm run lintが通ることnpm testが通ることnpm run typecheckが通ること関連Issue
スクリーンショット(任意)