[!] No podspec found for `React-CoreModules` in `../node_modules/react-native/React/CoreModules`
See original GitHub issueI upgraded react-native to version 0.61.2, I followed instructions to have my podfile attached, but when I did pod install, I got this error:
[!] No podspec found for React-CoreModules
in ../node_modules/react-native/React/CoreModules
and I checked the directory …/node_modules/react-native/, there is no React subfolder under it, so where is the React-CoreModules pod?
React Native version: System: OS: macOS Mojave 10.14.6 CPU: (8) x64 Intel® Core™ i7-7820HQ CPU @ 2.90GHz Memory: 16.48 MB / 16.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 11.4.0 - /usr/local/bin/node npm: 6.4.1 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 13.1, DriverKit 19.0, macOS 10.15, tvOS 13.0, watchOS 6.0 Android SDK: API Levels: 23, 25, 26, 27, 28 Build Tools: 27.0.3, 28.0.2, 28.0.3 System Images: android-22 | Google APIs Intel x86 Atom, android-27 | Google APIs Intel x86 Atom, android-27 | Google Play Intel x86 Atom, android-28 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom IDEs: Android Studio: 3.1 AI-173.4907809 Xcode: 11.1/11A1027 - /usr/bin/xcodebuild npmPackages: react: 16.9.0 => 16.9.0 react-native: 0.61.2 => 0.61.2 npmGlobalPackages: react-native-asset: 2.0.0 react-native-cli: 2.0.1 react-native-cn-richtext-editor: 1.0.33 react-native-git-upgrade: 0.2.7
Steps To Reproduce
- Use the following podfile
- run pod install
Describe what you expected to happen: It should install pod successfully
I got my podfile by referring to this site: https://react-native-community.github.io/upgrade-helper/?from=0.59.8&to=0.61.2
platform :ios, ‘9.1’
#source ‘https://cdn.cocoapods.org/’ require_relative ‘…/node_modules/@react-native-community/cli-platform-ios/native_modules’ target ‘icoin’ do
Comment the next line if you don’t want to use dynamic frameworks
use_frameworks!
Pods for icoin
pod ‘FBLazyVector’, :path => “…/node_modules/react-native/Libraries/FBLazyVector” pod ‘FBReactNativeSpec’, :path => “…/node_modules/react-native/Libraries/FBReactNativeSpec” pod ‘RCTRequired’, :path => “…/node_modules/react-native/Libraries/RCTRequired” pod ‘RCTTypeSafety’, :path => “…/node_modules/react-native/Libraries/TypeSafety” pod ‘React’, :path => ‘…/node_modules/react-native/’ pod ‘React-Core’, :path => ‘…/node_modules/react-native/’ pod ‘React-CoreModules’, :path => ‘…/node_modules/react-native/React/CoreModules’ pod ‘React-Core/DevSupport’, :path => ‘…/node_modules/react-native/’ pod ‘React-RCTActionSheet’, :path => ‘…/node_modules/react-native/Libraries/ActionSheetIOS’ pod ‘React-RCTAnimation’, :path => ‘…/node_modules/react-native/Libraries/NativeAnimation’ pod ‘React-RCTBlob’, :path => ‘…/node_modules/react-native/Libraries/Blob’ pod ‘React-RCTImage’, :path => ‘…/node_modules/react-native/Libraries/Image’ pod ‘React-RCTLinking’, :path => ‘…/node_modules/react-native/Libraries/LinkingIOS’ pod ‘React-RCTNetwork’, :path => ‘…/node_modules/react-native/Libraries/Network’ pod ‘React-RCTSettings’, :path => ‘…/node_modules/react-native/Libraries/Settings’ pod ‘React-RCTText’, :path => ‘…/node_modules/react-native/Libraries/Text’ pod ‘React-RCTVibration’, :path => ‘…/node_modules/react-native/Libraries/Vibration’ pod ‘React-Core/RCTWebSocket’, :path => ‘…/node_modules/react-native/’
pod ‘React-cxxreact’, :path => ‘…/node_modules/react-native/ReactCommon/cxxreact’ pod ‘React-jsi’, :path => ‘…/node_modules/react-native/ReactCommon/jsi’ pod ‘React-jsiexecutor’, :path => ‘…/node_modules/react-native/ReactCommon/jsiexecutor’ pod ‘React-jsinspector’, :path => ‘…/node_modules/react-native/ReactCommon/jsinspector’ pod ‘ReactCommon/jscallinvoker’, :path => “…/node_modules/react-native/ReactCommon” pod ‘ReactCommon/turbomodule/core’, :path => “…/node_modules/react-native/ReactCommon” pod ‘Yoga’, :path => ‘…/node_modules/react-native/ReactCommon/yoga’ pod ‘BVLinearGradient’, :path => ‘…/node_modules/react-native-linear-gradient’ pod ‘DoubleConversion’, :podspec => ‘…/node_modules/react-native/third-party-podspecs/DoubleConversion.podspec’ pod ‘glog’, :podspec => ‘…/node_modules/react-native/third-party-podspecs/glog.podspec’ pod ‘Folly’, :podspec => ‘…/node_modules/react-native/third-party-podspecs/Folly.podspec’
permissions_path = ‘…/node_modules/react-native-permissions/ios’
pod ‘Permission-BluetoothPeripheral’, :path => “#{permissions_path}/BluetoothPeripheral.podspec” pod ‘Permission-Calendars’, :path => “#{permissions_path}/Calendars.podspec” pod ‘Permission-Camera’, :path => “#{permissions_path}/Camera.podspec” pod ‘Permission-Contacts’, :path => “#{permissions_path}/Contacts.podspec” pod ‘Permission-FaceID’, :path => “#{permissions_path}/FaceID.podspec” pod ‘Permission-LocationAlways’, :path => “#{permissions_path}/LocationAlways.podspec” pod ‘Permission-LocationWhenInUse’, :path => “#{permissions_path}/LocationWhenInUse.podspec” pod ‘Permission-MediaLibrary’, :path => “#{permissions_path}/MediaLibrary.podspec” pod ‘Permission-Microphone’, :path => “#{permissions_path}/Microphone.podspec” pod ‘Permission-Motion’, :path => “#{permissions_path}/Motion.podspec” pod ‘Permission-Notifications’, :path => “#{permissions_path}/Notifications.podspec” pod ‘Permission-PhotoLibrary’, :path => “#{permissions_path}/PhotoLibrary.podspec” pod ‘Permission-Reminders’, :path => “#{permissions_path}/Reminders.podspec”
pod ‘Permission-Siri’, :path => “#{permissions_path}/Siri.podspec”
pod ‘Permission-SpeechRecognition’, :path => “#{permissions_path}/SpeechRecognition.podspec” pod ‘Permission-StoreKit’, :path => “#{permissions_path}/StoreKit.podspec”
pod ‘rn-fetch-blob’, :path => ‘…/node_modules/rn-fetch-blob’
pod ‘react-native-camera’, :path => ‘…/node_modules/react-native-camera’ #use_native_modules! #pod ‘RNPermissions’, :path => ‘…/node_modules/react-native-permissions’
use_native_modules!
end
Issue Analytics
- State:
- Created 4 years ago
- Reactions:7
- Comments:5
Top GitHub Comments
I have same problem after upgrade react-native 0.61.2
My changes were slightly different and I found extremely helpful the upgrade-helper tool. Specifically the diff between v 0.60.6 and v 0.61.2 (there)