-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Unable to find a specification for ExpoModulesCore
depended upon by EXApplication
#15959
Comments
Hi @MEsteves22, please provide a repository for us to test with. Hope it helps! |
Hi there! It looks like your issue requires a minimal reproducible example, but it is invalid or absent. Please prepare such an example and share it in a new issue. The best way to get attention to your issue is to provide a clean and easy way for a developer to reproduce the issue on their own machine. Please do not provide your entire project, or a project with more code than is necessary to reproduce the issue. A side benefit of going through the process of narrowing down the minimal amount of code needed to reproduce the issue is that you may get lucky and discover that the bug is due to a mistake in your application code that you can quickly fix on your own. ResourcesCommon concerns"I've only been able to reproduce it in private, proprietary code"You may not have spent enough time narrowing down the root cause of the issue. Try out the techniques discussed in this manual debugging guide to learn how to isolate the problem from the rest of your codebase. "I didn't have time to create one"That's understandable, it can take some time to prepare. We ask that you hold off on filing an issue until you are able to fully complete the required fields in the issue template. "You can reproduce it by yourself by creating a project and following these steps"This is useful knowledge, but it's still valuable to have the resulting project that is produced from running the steps, where you have verified you can reproduce the issue. |
Thank you for your answer! Sorry for not providing a repo, I didn't think it was needed. I will do what you suggested :) |
@MEsteves22 Do you were able to fix this error? because I am having the same problem 🥲 |
@mendesbarreto I solved my problem by deleting my project from my computer and cloning it again 😅 Then, I reinstalled all my |
@mendesbarreto Were you able to get it sorted out? I'm also having the same issue and removing |
EDIT: RANDOM RAMBLINGS - TROUBLESHOOTING
still no joy. this is my package.json UPDATE - still no joy.... I'm seeing this with sdk 43.... PARTIALLY WORKING expo install expo@42.0.5
expo install react-native@0.63.4
expo doctor --fix-dependencies package.json -> downgrading to 42 works for now. UPDATE - FIX require File.join(File.dirname(`node --print "require.resolve('expo/package.json')"`), "scripts/autolinking")
require File.join(File.dirname(`node --print "require.resolve('react-native/package.json')"`), "scripts/react_native_pods")
require File.join(File.dirname(`node --print "require.resolve('@react-native-community/cli-platform-ios/package.json')"`), "native_modules")
platform :ios, '12.0'
require 'json'
podfile_properties = JSON.parse(File.read('./Podfile.properties.json')) rescue {}
target 'YOURIPHONETARGETNAMEHEREEEEEE🔥' do
use_expo_modules!
config = use_native_modules!
use_react_native!(
:path => config[:reactNativePath],
:hermes_enabled => podfile_properties['expo.jsEngine'] == 'hermes'
)
# Uncomment to opt-in to using Flipper
#
# if !ENV['CI']
# use_flipper!('Flipper' => '0.75.1', 'Flipper-Folly' => '2.5.3', 'Flipper-RSocket' => '1.3.1')
# end
post_install do |installer|
react_native_post_install(installer)
# Workaround `Cycle inside FBReactNativeSpec` error for react-native 0.64
# Reference: https://github.com/software-mansion/react-native-screens/issues/842#issuecomment-812543933
installer.pods_project.targets.each do |target|
if (target.name&.eql?('FBReactNativeSpec'))
target.build_phases.each do |build_phase|
if (build_phase.respond_to?(:name) && build_phase.name.eql?('[CP-User] Generate Specs'))
target.build_phases.move(build_phase, 0)
end
end
end
end
end
post_integrate do |installer|
begin
expo_patch_react_imports!(installer)
rescue => e
Pod::UI.warn e
end
end
end |
Just wanted to leave a comment here if anyone is seeing similar issues relating to Expo, ExpoModulesCore, and cocoapods configuration: @pe-johndpope 's fix above did resolve my pod install failures, and specifically it was the following two linges:
and
Update: out of curiousity, I tried aligning the require statement with what seems to be the newer format, and it seems to work also.
For reference, the reason I ended up in a weird state was due to the fact that expo doesn't seem to have an option to generate the iOS and Android directories for new projects. So I was copy-pasting projects into an expo project, but didn't have the boilerplate necessary podfile to make everything work. I'm probably missing something in that process as well - I'd be curious to see any documentation or how-tos that are out there. |
In my case I faced this error when integrating Expo Modules to a Bare RN I added this snippet (from the setup guide) to the very end and everything works now.
|
In case anyone runs into the same issue as me, my problem was that I created a monorepo and forgot to add a |
In my case I've had to add |
getting a similar error when I run eas build -p ios expo managed app. [!] Unable to find a specification for
None of the solutions posted here have worked. |
@Michael-Davison I'm running into the the same error. Did you find a fix for this? |
I have this issue after updating my packages. Any fix found yet? |
run this command and it's good to go |
Took me 3 pomodoro sessions to fix this stuff! |
Summary
Since upgrading expo to SDK 44, I get the following error while running
pod install --repo-update
:Unable to find a specification for ExpoModulesCore depended upon by EXApplication
I also upgraded all the other expo packages I was using. I am currently using the following packages and versions:
I am using react-native version 0.67.0.
Is someone also having this problem?
Thank you!
Managed or bare workflow? If you have
ios/
orandroid/
directories in your project, the answer is bare!bare
What platform(s) does this occur on?
iOS
SDK Version (managed workflow only)
44
Environment
System:
OS: macOS 11.2.3
CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
Memory: 437.14 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 14.16.0 - /usr/local/bin/node
Yarn: 1.22.11 - /usr/local/bin/yarn
npm: 7.18.1 - /usr/local/bin/npm
Watchman: 2021.11.15.00 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.11.2 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4
Android SDK: Not Found
IDEs:
Android Studio: 4.1 AI-201.8743.12.41.7042882
Xcode: 12.5.1/12E507 - /usr/bin/xcodebuild
Languages:
Java: 11.0.11 - /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
Reproducible demo
I get the error while running
pod install --repo-update
.The text was updated successfully, but these errors were encountered: