question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

no such module 'ExpoModulesCore'

See original GitHub issue

Summary

no such module ‘ExpoModulesCore’ error when expo run on simulator

Managed or bare workflow? If you have made manual changes inside of the ios/ or android/ directories in your project, the answer is bare!

bare

What platform(s) does this occur on?

iOS

Package versions

{ “name”: “myviroapp”, “version”: “0.0.1”, “private”: true, “scripts”: { “android”: “react-native run-android”, “ios”: “react-native run-ios”, “start”: “expo start --dev-client”, “test”: “jest”, “lint”: “eslint .” }, “dependencies”: { “@react-native-async-storage/async-storage”: “^1.15.14”, “@react-native-community/datetimepicker”: “^4.0.1”, “@react-navigation/material-top-tabs”: “^6.0.6”, “@react-navigation/native”: “^6.0.6”, “@react-navigation/stack”: “^6.0.11”, “@viro-community/react-viro”: “^2.20.2”, “eas-cli”: “^0.38.3”, “expo”: “^43.0.4”, “expo-barcode-scanner”: “^11.1.2”, “expo-constants”: “^12.1.3”, “expo-notifications”: “^0.13.3”, “expo-screen-orientation”: “^4.0.3”, “expo-web-browser”: “^10.0.3”, “react”: “17.0.2”, “react-native”: “0.65.1”, “react-native-calendars”: “^1.1270.0”, “react-native-gesture-handler”: “^2.0.0”, “react-native-keyboard-aware-scroll-view”: “^0.9.5”, “react-native-modal-datetime-picker”: “^13.0.0”, “react-native-modal-selector”: “^2.1.0”, “react-native-pager-view”: “^5.4.9”, “react-native-parsed-text”: “^0.0.22”, “react-native-qrcode-svg”: “^6.1.1”, “react-native-safe-area-context”: “^3.3.2”, “react-native-screens”: “^3.10.0”, “react-native-side-menu-updated”: “^1.3.2”, “react-native-svg”: “^12.1.1”, “react-native-swiper-flatlist”: “^3.0.16”, “react-native-tab-view”: “^3.1.1”, “react-native-vector-icons”: “^9.0.0”, “react-native-webview”: “^11.15.0”, “react-native-youtube-iframe”: “^2.2.1” }, “optionalDependencies”: { “fsevents”: “^2.3.2” }, “devDependencies”: { “@babel/core”: “^7.15.0”, “@babel/runtime”: “^7.15.3”, “@react-native-community/eslint-config”: “^3.0.0”, “babel-jest”: “^27.0.6”, “eslint”: “^7.32.0”, “jest”: “^27.0.6”, “metro-react-native-babel-preset”: “^0.66.2”, “react-native-codegen”: “^0.0.7”, “react-test-renderer”: “17.0.2” }, “jest”: { “preset”: “react-native” } }

Environment

Expo CLI 4.13.0 environment info: System: OS: macOS 11.6 Shell: 5.8 - /bin/zsh Binaries: Node: 17.2.0 - /opt/homebrew/bin/node npm: 8.1.4 - /opt/homebrew/bin/npm Watchman: 2021.11.15.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.11.2 - /opt/homebrew/bin/pod SDKs: iOS SDK: Platforms: DriverKit 21.0.1, iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0 Android SDK: API Levels: 30, 31 Build Tools: 30.0.2, 31.0.0 System Images: android-31 | Google APIs ARM 64 v8a IDEs: Android Studio: 2020.3 AI-203.7717.56.2031.7784292 Xcode: 13.1/13A1030d - /usr/bin/xcodebuild npmPackages: expo: ^43.0.4 => 43.0.4 react: 17.0.2 => 17.0.2 react-native: 0.65.1 => 0.65.1 npmGlobalPackages: expo-cli: 4.13.0 Expo Workflow: bare

Reproducible demo

The command below works for physical device expo run:ios --device Iphone6

but the command for simulator is not working, do I miss anything expo run:ios --device and choose one simulator, and it will show the error message below.

❌ (/Users/xxxxx/Desktop/starter-kit/ios/Pods/Target Support Files/Pods-myviroapp/ExpoModulesProvider.swift:8:8)

6 | */ 7 |

8 | import ExpoModulesCore | ^ no such module ‘ExpoModulesCore’ 9 | 10 | @objc(ExpoModulesProvider) 11 | public class ExpoModulesProvider: ModulesProvider {

› 1 error(s), and 0 warning(s)

Stacktrace (if a crash is involved)

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jesse-savarycommented, Apr 7, 2022

Solved on my M1 Mac by modifying my Podfile:

  post_install do |installer|
    ...

    installer.pods_project.build_configurations.each do |config|
      config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64" # this line in particular
    end

    ...
  end
1reaction
greenafricancommented, Jan 11, 2022

@copper123 @okpalaChidiebere

Try opening project.xcworkspace (and not project.xcodeproj) in Xcode and run via simulator.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No such module 'ExpoModulesCore' · Issue #32704 - GitHub
Description. xcode give error No such module 'ExpoModulesCore' when I try build ios project. Version. 0.66.0. Output of react-native info.
Read more >
Getting error "No such module" using Xcode, but the ...
The frameworks is in Objective-C, so I wrote a Bridge Header for it. Please, how can I make Xcode recognize the framework? Error...
Read more >
Xcode 12.0.1 "No such module" | Apple Developer Forums
1 I can't build my projects anymore. Each time I do I get "No such module..." for each Pod. I haven't made any...
Read more >
could not find module 'expomodulescore' - You.com - You.com
It looks like you may be missing the 'expomodulescore' module. This module is part of the Expo SDK and is needed for some...
Read more >
expo-modules-core - npm
Run npx pod-install after installing the npm package. Configure for Android. No additional set up necessary. Importing native dependencies - ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found