Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No such module 'ExpoModulesCore' #32704

Closed
esefberfu opened this issue Dec 4, 2021 · 17 comments
Closed

No such module 'ExpoModulesCore' #32704

esefberfu opened this issue Dec 4, 2021 · 17 comments
Labels
Needs: Author Feedback Resolution: Locked This issue was locked by the bot.

Comments

@esefberfu
Copy link

Description

xcode give error No such module 'ExpoModulesCore' when I try build ios project.

Version

0.66.0

Output of react-native info

System:
OS: macOS 12.1
CPU: (12) x64 Intel(R) Core(TM) i5-10600 CPU @ 3.30GHz
Memory: 478.62 MB / 24.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 12.22.3 - /usr/local/bin/node
Yarn: 1.22.10 - /usr/local/bin/yarn
npm: 6.14.13 - /usr/local/bin/npm
Watchman: Not Found
Managers:
CocoaPods: 1.11.0 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.0.1, iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0
Android SDK: Not Found
IDEs:
Android Studio: Arctic Fox 2020.3.1 Patch 3 Arctic Fox 2020.3.1 Patch 3
Xcode: 13.1/13A1030d - /usr/bin/xcodebuild
Languages:
Java: 16.0.1 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: Not Found
react-native: Not Found
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found

Steps to reproduce

build xcode project

Snack, code example, screenshot, or link to a repository

No response

@react-native-bot react-native-bot added Needs: Author Feedback Needs: Environment Info Please run `react-native info` and edit your issue with that command's output. and removed Needs: Triage 🔍 labels Dec 4, 2021
@github-actions
Copy link

github-actions bot commented Dec 4, 2021

⚠️ Missing Environment Information
ℹ️ Your issue may be missing information about your development environment. You can obtain the missing information by running react-native info in a console.

@react-native-bot react-native-bot removed the Needs: Environment Info Please run `react-native info` and edit your issue with that command's output. label Dec 4, 2021
@rusakovic
Copy link

Confirm this error

@jojonarte
Copy link

any news on this bug?

@greenafrican
Copy link

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

@ngima
Copy link

ngima commented Jan 23, 2022

I was having the same issue, opening project.xcworkspace solved the issue for me. It's working for real device also.

thanks @greenafrican

@oneHamidreza
Copy link

Just set "yes" in Build Active Architecture Only for debug.
Screen Shot 1400-11-27 at 11 00 31 PM

@nheyland
Copy link

I was having the same issue, opening project.xcworkspace solved the issue for me. It's working for real device also.

thanks @greenafrican

This works for me on real devices, but not on simulators. Currently on an M1.

@jojonarte
Copy link

You can do this on m1 mac

post_install do |installer|
// other steps
    installer.pods_project.build_configurations.each do |config|
      config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
    end
  end

@nheyland
Copy link

You can do this on m1 mac

post_install do |installer|
// other steps
    installer.pods_project.build_configurations.each do |config|
      config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
    end
  end

This worked perfectly, Thankyou!

@cortinico
Copy link
Contributor

Closing as a workaround was suggested.
Moreover this looks like a Expo related issue, so it should be reported to: github.com/expo/expo/

@app-c
Copy link

app-c commented Mar 2, 2022

esse erro ocorre por causa da incompatibilidade com a versao do node....voce precisa instalar a v14

@neelsomani
Copy link

Thanks @greenafrican

@patrick91
Copy link

This also might happen if you open the xcodeproj file instead of the xcworkspace file after running expo prebuild :)

@PopBot
Copy link

PopBot commented Jul 4, 2022

For me, I accidentally had arm64 selected in Excluded Architectures. I removed the excluded architectures and had better results.
image

@donni106
Copy link

donni106 commented Jul 18, 2022

I also needed to remove all occurrences of the exluded archs, that were added somehow magically:

Bildschirmfoto 2022-07-18 um 16 42 24

@papidb
Copy link

papidb commented Nov 9, 2022

Opening xCode with rosetta does it for me.
image

@VxxxxC
Copy link

VxxxxC commented Feb 7, 2023

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

Sir! You got the point!
That's fix my problem!! thank you!!

@facebook facebook locked as resolved and limited conversation to collaborators Feb 25, 2023
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Feb 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Needs: Author Feedback Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests