react-native: RN 0.62 pod repo update error
Please provide all the information requested. Issues that do not follow this format are likely to stall.
Description
saravanakumar@SaravanumarsMBP ios % pod repo update
Updating spec repo `trunk`
saravanakumar@SaravanumarsMBP ios % pod install --repo-update
Detected React Native module pods for RNCAsyncStorage, RNCMaskedView, RNCPicker, RNDateTimePicker, RNGestureHandler, RNLocalize, RNReanimated, RNSVG, RNScreens, RNVectorIcons, ReactNativeUiLib, RealmJS, react-native-blur, react-native-contacts, react-native-geolocation, react-native-maps, react-native-netinfo, react-native-safe-area-context, and react-native-slider
Updating local specs repositories
Analyzing dependencies
Fetching podspec for `DoubleConversion` from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`
Fetching podspec for `Folly` from `../node_modules/react-native/third-party-podspecs/Folly.podspec`
Fetching podspec for `glog` from `../node_modules/react-native/third-party-podspecs/glog.podspec`
[!] CocoaPods could not find compatible versions for pod "ReactCommon/jscallinvoker":
In Podfile:
ReactCommon/jscallinvoker (from `../node_modules/react-native/ReactCommon`)
None of your spec sources contain a spec satisfying the dependency: `ReactCommon/jscallinvoker (from `../node_modules/react-native/ReactCommon`)`.
You have either:
* mistyped the name or version.
* not added the source repo that hosts the Podspec to your Podfile.
saravanakumar@SaravanumarsMBP ios %
React Native version:
info Fetching system and libraries information...
System:
OS: macOS 10.15.4
CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
Memory: 1.49 GB / 16.00 GB
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 10.19.0 - ~/.nvm/versions/node/v10.19.0/bin/node
Yarn: 1.22.0 - /usr/local/bin/yarn
npm: 6.13.4 - ~/.nvm/versions/node/v10.19.0/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Xcode: 11.3.1/11C504 - /usr/bin/xcodebuild
Languages:
Python: 2.7.16 - /usr/bin/python
npmPackages:
@react-native-community/cli: Not Found
react: 16.13.1 => 16.13.1
react-native: 0.62.0 => 0.62.0
npmGlobalPackages:
*react-native*: Not Found
Steps To Reproduce
Provide a detailed list of steps that reproduce the issue.
- Upgrade to 0.62.0 version
- cd ios
- pod install / pod install --repo-update
Expected Results
pod install --repo-update
should not throw any error.
Snack, code example, screenshot, or link to a repository:
Please provide a Snack (https://snack.expo.io/), a link to a repository on GitHub, or provide a minimal code example that reproduces the problem. You may provide a screenshot of the application if you think it is relevant to your bug report. Here are some tips for providing a minimal example: https://stackoverflow.com/help/mcve
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 3
- Comments: 23 (1 by maintainers)
Links to this issue
Commits related to this issue
- Update Podfile issues with jscallInvoker https://github.com/facebook/react-native/issues/28408#issuecomment-656697750 outdated version for FBReactNativeSpec — committed to luisantos1986/react-native-camera by luisantos1986 3 years ago
- chore: example Update Podfile (#3083) issues with jscallInvoker https://github.com/facebook/react-native/issues/28408#issuecomment-656697750 outdated version for FBReactNativeSpec — committed to react-native-camera/react-native-camera by luisantos1986 3 years ago
- chore: example Update Podfile (#3083) issues with jscallInvoker https://github.com/facebook/react-native/issues/28408#issuecomment-656697750 outdated version for FBReactNativeSpec — committed to sunil-dev7/react-native-camera by sunil-dev7 3 years ago
I solved this issue (version 0.63) by changing the line in the
Podfile
frompod 'ReactCommon/callinvoker', :path => "../node_modules/react-native/ReactCommon"
to
pod 'React-callinvoker', :path => "../node_modules/react-native/ReactCommon/callinvoker"
In my case i already have :
pod 'ReactCommon/callinvoker', :path => "../node_modules/react-native/ReactCommon"
And still have an error :
@alloy
I wanted to find exactly what was causing it so I stepped through setting up my environment until the problem occured.
In summary the problem occurs after installing https://github.com/wix/react-native-navigation
None of the various remedies listed in this thread worked for me - my environment is permanently broken.
Here is a sequence of steps to invoke the problem for me:
``` npx react-native info info Fetching system and libraries information... System: OS: macOS High Sierra 10.13.6 CPU: (4) x64 Intel(R) Core(TM) i5-4278U CPU @ 2.60GHz Memory: 108.62 MB / 16.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 12.18.1 - /usr/local/bin/node Yarn: 1.22.4 - /usr/local/bin/yarn npm: 6.14.5 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman Managers: CocoaPods: 1.9.3 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1 Android SDK: API Levels: 28, 30 Build Tools: 28.0.3, 30.0.0 System Images: android-27 | Google APIs Intel x86 Atom, android-30 | Google APIs Intel x86 Atom Android NDK: Not Found IDEs: Android Studio: 4.0 AI-193.6911.18.40.6514223 Xcode: 10.1/10B61 - /usr/bin/xcodebuild Languages: Java: 1.8.0_252 - /usr/bin/javac Python: 2.7.6 - /Library/Frameworks/Python.framework/Versions/2.7/bin/python npmPackages: @react-native-community/cli: Not Found react: 16.11.0 => 16.11.0 react-native: 0.62.2 => 0.62.2 npmGlobalPackages: *react-native*: Not Foundnpx react-native init testapp --template react-native-template-typescript cd testapp npx react-native run-ios npm install react-native-gesture-handler npx react-native run-ios cd ios pod install cd … npm install chadsmith/react-native-microphone-stream cd ios pod install cd … npx react-native run-ios npm install react-native-navigation cd ios pod install cd … npx react-native run-ios at this point the problem occurs, here is the error output:
Seems like you haven’t followed the upgrade instruction properly. Use this site to see the diff you need to modify/add.
To your problem, you need to change your
Podfile
From:pod 'ReactCommon/jscallinvoker', :path => "../node_modules/react-native/ReactCommon"
To:
pod 'ReactCommon/callinvoker', :path => "../node_modules/react-native/ReactCommon"
This manipulations solved my problem. I hope, it will help you too :
In RN 0.63.0 you can remove all RN pods from you podfile and just include the following lines inside the target.
Also this line needs to be added after the platform line:
require_relative '../node_modules/react-native/scripts/react_native_pods'
After this delete the Pods directory, Podfile.lock and the workspace file. Then just
pod install
.None of the proposed solutions worked for me.
Finally I think I have fixed it:
I got a new hard disk for my Mac I installed a totally clean build of the very latest OSX Catalina (NOT an upgrade) I reinstalled all of my applications I did a clean install of xcode I did a clean install of Android Studio
Goodness knows what was wrong with my toolchain but a lovely clean build of the latest everything seems to work just fine.
Radical action that’s for sure but what’s the point in trying to diagnose weird errors on an out of date system.
Following @tapz directions worked for me. Delete the podfile folder, podfile.lock and change podfile to
then
pod install
and get back to businessFollowing this guide, depending on your version, for me it was only modifying the Podfile and removing the pods folder as well as the Podfile.lock and then pod install, and it built successfully. https://react-native-community.github.io/upgrade-helper/?from=0.62.2&to=0.63.0
I have the sample problem on the 0.63.0. But The project is work find when I revert my project to previous 0.62.0
This is working fine.
bootrino should remove his post with his log it made me miss the right answer!
Yes I still have the same problem. tried all the solutions here