-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
I have isse when installing new react native application #12326
Comments
Hi @SL-BLACK-EAGLE. You're getting this issue because you're using the version of Ruby that came preinstalled on your Mac. The most reliable way to install Cocoapods on a Mac is to set up a proper Ruby development environment that uses a version manager to install a newer and separate version of Ruby that doesn't interfere with the system Ruby. Once you have that, installing a new React Native application should work. Here's a very detailed step-by-step guide for installing Ruby on a Mac. |
HI @monfresh. First of all I would like to thank you very much and appreciate your prompt response for the issue i have created. |
You're very welcome! I'm glad it worked for you. |
At some point, i happened to enable rosetta for terminal(which I totally forgot about later). This is a life saver @monfresh . This is just brilliant. Saved a lot of my time! |
Thanks a bunch ❤️ |
Thanks a bunch, worked for me as well! |
✔ Downloading template
✔ Copying template
✔ Installing dependencies
✔ Do you want to install CocoaPods now? Only needed if you run your project in Xcode directly … yes
✖ Installing Ruby Gems
error Fetching gem metadata from https://rubygems.org/........
Resolving dependencies...
Fetching base64 0.2.0
Installing base64 0.2.0
Fetching nkf 0.2.0
Installing nkf 0.2.0 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
/Users/macintosh/Projects/AwesomeProject/vendor/bundle/ruby/2.6.0/gems/nkf-0.2.0/ext/nkf
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby -I
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0 -r
./siteconf20240326-4210-bfrxoc.rb extconf.rb
creating Makefile
current directory:
/Users/macintosh/Projects/AwesomeProject/vendor/bundle/ruby/2.6.0/gems/nkf-0.2.0/ext/nkf
make "DESTDIR=" clean
current directory:
/Users/macintosh/Projects/AwesomeProject/vendor/bundle/ruby/2.6.0/gems/nkf-0.2.0/ext/nkf
make "DESTDIR="
make: *** No rule to make target
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.1.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/include/ruby-2.6.0/universal-darwin21/ruby/config.h', needed by
nkf.o'. Stop.make failed, exit code 2
Gem files will remain installed in
/Users/macintosh/Projects/AwesomeProject/vendor/bundle/ruby/2.6.0/gems/nkf-0.2.0
for inspection.
Results logged to
/Users/macintosh/Projects/AwesomeProject/vendor/bundle/ruby/2.6.0/extensions/universal-darwin-21/2.6.0/nkf-0.2.0/gem_make.out
An error occurred while installing nkf (0.2.0), and Bundler cannot continue.
Make sure that
gem install nkf -v '0.2.0' --source 'https://rubygems.org/'
succeeds before bundling.
In Gemfile:
cocoapods was resolved to 1.14.3, which depends on
xcodeproj was resolved to 1.24.0, which depends on
CFPropertyList was resolved to 3.0.7, which depends on
nkf
error Installing pods failed. This doesn't affect project initialization and you can safely proceed.
However, you will need to install pods manually when running iOS, follow additional steps in "Run instructions for iOS" section.
✖ Installing Ruby Gems
The text was updated successfully, but these errors were encountered: