Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React Native with Expo app build give "No such module 'ExpoModulesCore'" error

I'm trying to build my React Native with Expo app on XCode. Everything seems to work with Pods but I'v got this error:

No such module "ExpoModulesCore" error

Does anyone have any idea how to resolve it?

expo version : 51.0.13
expo-modules-core version : 1.12.25
Xcode version : 16.0

I added use_expo_modules! in Podfile but no success :(

like image 647
Damien Borgniet Avatar asked Oct 27 '25 15:10

Damien Borgniet


2 Answers

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

like image 180
Rahul Tiwari Avatar answered Oct 29 '25 07:10

Rahul Tiwari


  1. Change into the project directory by running: cd your/project/path

  2. Run: npm install expo-modules-core

  3. Run npx expo prebuild --clean

  4. Run: cd ios

  5. Run pod deintegrate

  6. Run pod cache clean --all

  7. Run: rm -rf ~/Library/Developer/Xcode/DerivedData/*

  8. Run pod install

  9. Open the Xcode project workspace (.xcworkspace file)from within ios folder.

  10. Select Any iOS Device (arm64).

  11. Try to build or archive via Product menu.

like image 34
Alperen CINAR Avatar answered Oct 29 '25 05:10

Alperen CINAR



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!