I’m trying to put together a project for iOS at Expo.
I run the following commands:
-
rm -rf node_modules android ios
-
npm i
there is my package.json:
{
"name": "firstapp",
"main": "expo-router/entry",
"version": "1.0.0",
"scripts": {
"start": "expo start",
"reset-project": "node ./scripts/reset-project.js",
"android": "expo run:android",
"ios": "expo run:ios",
"web": "expo start --web",
"lint": "expo lint"
},
"dependencies": {
"@expo/vector-icons": "^15.0.3",
"@react-native-community/javascriptcore": "^0.2.0",
"@react-navigation/bottom-tabs": "^7.4.0",
"@react-navigation/elements": "^2.6.3",
"@react-navigation/native": "^7.1.8",
"expo": "~54.0.20",
"expo-constants": "~18.0.10",
"expo-font": "~14.0.9",
"expo-haptics": "~15.0.7",
"expo-image": "~3.0.10",
"expo-linking": "~8.0.8",
"expo-router": "~6.0.13",
"expo-splash-screen": "~31.0.10",
"expo-status-bar": "~3.0.8",
"expo-symbols": "~1.0.7",
"expo-system-ui": "~6.0.8",
"expo-web-browser": "~15.0.8",
"lucide": "^0.548.0",
"lucide-react-native": "^0.548.0",
"react": "19.1.0",
"react-dom": "19.1.0",
"react-native": "0.81.5",
"react-native-gesture-handler": "~2.28.0",
"react-native-reanimated": "~4.1.1",
"react-native-safe-area-context": "~5.6.0",
"react-native-screens": "~4.16.0",
"react-native-svg": "15.12.1",
"react-native-web": "~0.21.0",
"react-native-worklets": "0.5.1"
},
"devDependencies": {
"@types/react": "~19.1.0",
"eslint": "^9.25.0",
"eslint-config-expo": "~10.0.0",
"typescript": "~5.9.2"
},
"private": true
}
- npx expo prebuild –clean
- npx expo run:ios
An error related to the Hermes engine occurred during the build.
The following build commands failed:
PhaseScriptExecution [CP-User]\ [RN]\ [2]\ Build\ Hermes /Users/alex/Library/Developer/Xcode/DerivedData/todo-cycgfezcyhczudhejdarwzurubpi/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/hermes-engine.build/Script-46EB2E0002B6B0.sh (in target 'hermes-engine' from project 'Pods')
Building workspace todo with scheme todo and configuration Debug
(2 failures)
Build logs written to /Users/alex/ios/firstapp/.expo/xcodebuild.log
CMake Warning:
Manually-specified variables were not used by the project:
IMPORT_HERMESC
-- Build files have been written to: /Users/alex/ios/firstapp/ios/Pods/hermes-engine/build/iphonesimulator
++ echo 'Build Apple framework'
Build Apple framework
+++ sysctl -n hw.ncpu
++ /opt/homebrew/bin/cmake --build /Users/alex/ios/firstapp/ios/Pods/hermes-engine/build/iphonesimulator --target libhermes -j 8
make: *** No rule to make target `libhermes'. Stop.
Command PhaseScriptExecution failed with a nonzero exit code
I also tried reinstalling dependencies, clearing the node.js cache and the project build folder in Xcode, and disabling hermes_engine in PodFile. Building with npx expo start works. I should also note that building with the expo version 52 dependency also works with the hermes engine disabled.
How can this be fixed?