-
Notifications
You must be signed in to change notification settings - Fork 24.2k
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
warning when running bundle exec
command - Your RubyGems version (3.0.3.1) has a bug that prevents required_ruby_version
from working for Bundler. Any scripts that use gem install bundler
will break as soon as Bundler drops support for your Ruby version. Please upgrade RubyGems to avoid future breakage and silence this warning by running gem update --system 3.2.3
#37183
Comments
|
Hi @Adnan-Bacic, thanks for the question. Have you tried to update it as suggested by using |
i assumed this was related to some sort of react-native versioning. i tried running the command. but i started getting a lot of errors. when running
the most simple and straightforward solution was to just run before adding the im not sure what the exact problem is. i see the error messages refer to version 2.6.0, while my system ruby version is 2.6.10. either way, the local |
Happy that you found a solution that works for you. I think that there is something wanky going on with the local Ruby setup, but it should not be React Native specifically as it doesn't enforce any Ruby version anymore! ;) |
This steps work for me perfectly to create react native project without error |
Chek This link for more information |
Thanks it helps me really |
i could only fix this by upgrading ruby on mac |
Have you tried upgrading RubyGems as the warning suggested? |
Description
when running a pod command such as
pod install
, there are no warnings. however if you runbundle exec pod install
then it shows a console warning:happens on 0.70.8. i also tried creating a brand new project running the newest 0.71.6 version and its the same result.
its required/better to run
bundle exec pod install
instead of justpod install
, otherwise it may not use your projects version of CocoaPods when downloading pods.React Native Version
0.70.8
Output of
npx react-native info
info Fetching system and libraries information...
System:
OS: macOS 13.3.1
CPU: (8) x64 Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz
Memory: 32.79 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 16.13.2 - ~/.nvm/versions/node/v16.13.2/bin/node
Yarn: 3.2.0 - ~/.nvm/versions/node/v16.13.2/bin/yarn
npm: 8.1.2 - ~/.nvm/versions/node/v16.13.2/bin/npm
Watchman: 2023.04.10.00 - /usr/local/bin/watchman
Managers:
CocoaPods: 1.11.2 - /Users/adb/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms: DriverKit 22.4, iOS 16.4, macOS 13.3, tvOS 16.4, watchOS 9.4
Android SDK:
API Levels: 23, 28, 29, 30, 31, 32, 33
Build Tools: 28.0.3, 29.0.2, 30.0.2, 30.0.3, 31.0.0, 33.0.0, 33.0.2
System Images: android-29 | Intel x86 Atom_64, android-30 | Google APIs Intel x86 Atom, android-30 | Google Play Intel x86 Atom, android-31 | Google APIs Intel x86 Atom_64, android-32 | Google APIs Intel x86_64 Atom, android-33 | Google APIs Intel x86_64 Atom, android-33 | Google Play Intel x86 Atom_64
Android NDK: Not Found
IDEs:
Android Studio: 2022.2 AI-222.4459.24.2221.9862592
Xcode: 14.3/14E222b - /usr/bin/xcodebuild
Languages:
Java: 11.0.14.1 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.1.0 => 18.1.0
react-native: 0.70.8 => 0.70.8
react-native-macos: Not Found
npmGlobalPackages:
react-native: Not Found
Steps to reproduce
npx react-native@latest init AwesomeProject
cd ios
bundle exec pod install
Snack, code example, screenshot, or link to a repository
The text was updated successfully, but these errors were encountered: