Skip to content

Commit 33d4e18

Browse files
committed
docs(expo): zfh engine and spm clarification
1 parent bec06d8 commit 33d4e18

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,8 +523,10 @@ example and platform-specific setup notes.
523523
}
524524
```
525525

526-
The Expo plugin writes the Android Gradle property, CocoaPods' `ZFH_ENGINE`, and
527-
the `ZFHEngine` value used by SwiftPM.
526+
The Expo plugin sets the Android Gradle property and CocoaPods' `ZFH_ENGINE`.
527+
It also mirrors the selected engine to `ZFHEngine` in `Info.plist`, but Expo
528+
Prebuild currently uses CocoaPods on iOS. This key does not enable SwiftPM; it
529+
is kept for forward compatibility with React Native's SwiftPM selector.
528530

529531
If `engine` is omitted, `native` is used.
530532

app.plugin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ function updatePodfileContents(contents, engine) {
100100

101101
function setIosEngine(config, engine) {
102102
config = withInfoPlist(config, (mod) => {
103-
// SwiftPM's autolinking plugin compiles only the engine selected here.
104-
// no key means native, matching the CocoaPods default.
103+
// Expo Prebuild currently uses CocoaPods on iOS. Keep this value in
104+
// sync for React Native's SwiftPM selector; it does not enable SwiftPM.
105105
mod.modResults.ZFHEngine = engine;
106106
return mod;
107107
});

0 commit comments

Comments
 (0)