could not find module 'ExpoModulesCore' for target 'x86_64-apple-ios-simulator'; found: arm64, arm64-apple-ios-simulator M1 Mac

Im trying to add in react-native healthkit into our application. So I install the healthkit and then run through Adding custom native code - Expo Documentation. When I run expo run:ios It fails with the following message: could not find module ‘ExpoModulesCore’ for target ‘x86_64-apple-ios-simulator’; found: arm64, arm64-apple-ios-simulator.

Ive googled it and went into xcode settings etc and I cannot find a fix. Any ideas on how to fix this?

Expo Version: 43
Im running a M1 Mac

yarn why expo-modules-core returns

=> Found "expo-modules-core@0.4.8"
info Reasons this module exists
   - "expo-barcode-scanner" depends on it
   - Hoisted from "expo-barcode-scanner#expo-modules-core"
   - Hoisted from "expo-camera#expo-modules-core"
   - Hoisted from "expo-constants#expo-modules-core"
   - Hoisted from "expo-font#expo-modules-core"
   - Hoisted from "expo-haptics#expo-modules-core"
   - Hoisted from "expo-image-picker#expo-modules-core"
   - Hoisted from "expo-mail-composer#expo-modules-core"
   - Hoisted from "expo-notifications#expo-modules-core"
   - Hoisted from "expo-permissions#expo-modules-core"
   - Hoisted from "expo-sharing#expo-modules-core"
   - Hoisted from "expo-print#expo-modules-core"
   - Hoisted from "expo-splash-screen#expo-modules-core"
   - Hoisted from "expo#expo-modules-core"
   - Hoisted from "expo-updates#expo-modules-core"
   - Hoisted from "expo#expo-error-recovery#expo-modules-core"
   - Hoisted from "expo#expo-file-system#expo-modules-core"
   - Hoisted from "expo-notifications#unimodules-task-manager-interface#expo-modules-core"
info Disk size without dependencies: "1.57MB"
info Disk size with unique dependencies: "1.63MB"
info Disk size with transitive dependencies: "1.69MB"
info Number of shared dependencies: 4
✨  Done in 0.28s.

Did you resolve this issue? I’m facing the same error in SDK 44.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.