Repository navigation
実効性の無くなったios.buildReactNativeFromSource設定を削除 - #6667
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)
💤 Files with no reviewable changes (2)
📝 WalkthroughWalkthrough
ChangesiOSビルド設定
Estimated code review effort: 1 (Trivial) | ~2 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
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.
概要
iOS で実効性を失っている
ios.buildReactNativeFromSource設定を削除し、宣言と実際のビルド挙動の食い違いを解消します。挙動は変わりません(削除前後どちらも prebuilt バイナリを使用)。Expo SDK 57 の iOS ビルド修正 (#6664) の調査中に、
ios.buildReactNativeFromSource: trueを宣言しているにもかかわらず prebuilt な React Core がダウンロードされていることに気付いたのが発端です。変更の種類
変更内容
ios/Podfile.properties.jsonから"ios.buildReactNativeFromSource": "true"を削除app.config.tsからexpo-build-propertiesプラグイン項目を削除(このオプションのみを保持していたため)expo-build-propertiesパッケージ自体はpackage.jsonに残しています。再ロックを伴う変更は避ける方針であり、設定専用プラグインなのでビルドへの影響もありません。実効性が無い理由
React Native 0.86 の
react_native_pods.rb(use_react_native!内)が、環境変数を明示的に'0'にしない限り prebuilt を強制します。一方
ios/Podfileは Expo SDK 54 期のテンプレートのままで、'1'を条件付きで代入することはあっても'0'を書きません。したがって
trueを指定しても環境変数は未設定のまま RN 側に渡り、'1'(prebuilt)へ上書きされます。React Native が既定をソースビルドから prebuilt へ反転させた際に、テンプレート側が追随していなかったことが原因です。削除すると Podfile の条件が真になり環境変数へ
'1'が明示的に入りますが、RN 側の評価結果は'1'のままで挙動は同一です。元々の導入経緯と、現在は不要な理由
useHermesV1: trueとセットで導入。useHermesV1: falseは iOS でソースビルドを要求する(expo-build-propertiesの validation)ため必須だったuseHermesV1自体が削除済みで、この結合は既に解消xcodebuild archiveで、EAS 固有の事情は該当しないpatch-packageによる react-native 本体へのパッチpatches/に react-native 本体のパッチは無し(expo-speech/expo-task-managerなどは Pod としてソースビルドされるため影響なし)テスト
ローカル(Linux)で実行:
CocoaPods / Xcode の検証は
docs/ios-build-workflows.mdの「Safe dry-run」手順に従い、本ブランチに対して Build iOS Canary を TestFlight アップロード無効で実行しました。** ARCHIVE SUCCEEDED **、コンパイルエラー 0 件、本体・App Clip ともLdまで到達、dSYM アップロード成功削除前(#6664 の検証ビルド)と同じく
[ReactNativeCore] Using React Native Core and React Native Dependencies prebuiltがログに出ており、ビルド構成が変わっていないことを確認しています。npm run lintが通ることnpm testが通ることnpm run typecheckが通ること関連Issue
スクリーンショット(任意)
Summary by CodeRabbit