Skip to content
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

[FIXED] error bundler: failed to load command: pod, deprecate to_default_s: :to_s, deprecator: ActiveSupport.deprecator #39832

Closed
Angelk90 opened this issue Oct 5, 2023 · 26 comments
Labels
📦Bundler Impact: Regression Describes a behavior that used to work on a prior release, but stopped working recently. Platform: iOS iOS applications. Resolution: Fixed A PR that fixes this issue has been merged.

Comments

@Angelk90
Copy link

Angelk90 commented Oct 5, 2023

Description

I tried creating a new project in react native:

npx react-native@latest init myApp

When creating the project I get this:

Installing CocoaPods dependencies (this may take a few minutes)
error bundler: failed to load command: pod (/Users/nameUser/Desktop/proj/myApp/vendor/bundle/ruby/3.2.0/bin/pod)
/Users/nameUser/Desktop/proj/myApp/vendor/bundle/ruby/3.2.0/gems/activesupport-7.1.0/lib/active_support/core_ext/array/conversions.rb:108:in `<class:Array>': undefined method `deprecator' for ActiveSupport:Module (NoMethodError)

  deprecate to_default_s: :to_s, deprecator: ActiveSupport.deprecator
                                                          ^^^^^^^^^^^
Did you mean?  deprecate_constant
    from /Users/nameUser/Desktop/proj/myApp/vendor/bundle/ruby/3.2.0/gems/activesupport-7.1.0/lib/active_support/core_ext/array/conversions.rb:8:in `<top (required)>'
    from <internal:/Users/nameUser/.rbenv/versions/3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:38:in `require'
    from <internal:/Users/nameUser/.rbenv/versions/3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:38:in `require'
    from /Users/nameUser/Desktop/proj/myApp/vendor/bundle/ruby/3.2.0/gems/cocoapods-1.13.0/lib/cocoapods.rb:9:in `<top (required)>'
    from <internal:/Users/nameUser/.rbenv/versions/3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:38:in `require'
    from <internal:/Users/nameUser/.rbenv/versions/3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:38:in `require'
    from /Users/nameUser/Desktop/proj/myApp/vendor/bundle/ruby/3.2.0/gems/cocoapods-1.13.0/bin/pod:36:in `<top (required)>'
    from /Users/nameUser/Desktop/proj/myApp/vendor/bundle/ruby/3.2.0/bin/pod:25:in `load'
    from /Users/nameUser/Desktop/proj/myApp/vendor/bundle/ruby/3.2.0/bin/pod:25:in `<top (required)>'
    from /Users/nameUser/.rbenv/versions/3.2.2/lib/ruby/site_ruby/3.2.0/bundler/cli/exec.rb:58:in `load'
    from /Users/nameUser/.rbenv/versions/3.2.2/lib/ruby/site_ruby/3.2.0/bundler/cli/exec.rb:58:in `kernel_load'
    from /Users/nameUser/.rbenv/versions/3.2.2/lib/ruby/site_ruby/3.2.0/bundler/cli/exec.rb:23:in `run'
    from /Users/nameUser/.rbenv/versions/3.2.2/lib/ruby/site_ruby/3.2.0/bundler/cli.rb:492:in `exec'
    from /Users/nameUser/.rbenv/versions/3.2.2/lib/ruby/site_ruby/3.2.0/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
    from /Users/nameUser/.rbenv/versions/3.2.2/lib/ruby/site_ruby/3.2.0/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
    from /Users/nameUser/.rbenv/versions/3.2.2/lib/ruby/site_ruby/3.2.0/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
    from /Users/nameUser/.rbenv/versions/3.2.2/lib/ruby/site_ruby/3.2.0/bundler/cli.rb:34:in `dispatch'
    from /Users/nameUser/.rbenv/versions/3.2.2/lib/ruby/site_ruby/3.2.0/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
    from /Users/nameUser/.rbenv/versions/3.2.2/lib/ruby/site_ruby/3.2.0/bundler/cli.rb:28:in `start'
    from /Users/nameUser/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.20/exe/bundle:37:in `block in <top (required)>'
    from /Users/nameUser/.rbenv/versions/3.2.2/lib/ruby/site_ruby/3.2.0/bundler/friendly_errors.rb:117:in `with_friendly_errors'
    from /Users/nameUser/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.4.20/exe/bundle:29:in `<top (required)>'
    from /Users/nameUser/.rbenv/versions/3.2.2/bin/bundle:25:in `load'
    from /Users/nameUser/.rbenv/versions/3.2.2/bin/bundle:25:in `<main>'
✖ Installing CocoaPods dependencies (this may take a few minutes)
error Looks like your iOS environment is not properly set. Please go to https://reactnative.dev/docs/environment-setup?os=macos&platform=android and follow the React Native CLI QuickStart guide for macOS and iOS.
  "dependencies": {
    "react": "18.2.0",
    "react-native": "0.72.5"
  }

React Native Version

0.72.5

Output of npx react-native info

System:
  OS: macOS 14.0
  CPU: (8) x64 Intel(R) Core(TM) i5-1038NG7 CPU @ 2.00GHz
  Memory: 2.95 GB / 16.00 GB
  Shell:
    version: "5.9"
    path: /bin/zsh
Binaries:
  Node:
    version: 18.17.1
    path: ~/.nvm/versions/node/v18.17.1/bin/node
  Yarn:
    version: 1.22.4
    path: /usr/local/bin/yarn
  npm:
    version: 9.6.7
    path: ~/.nvm/versions/node/v18.17.1/bin/npm
  Watchman:
    version: 2023.09.04.00
    path: /usr/local/bin/watchman
Managers:
  CocoaPods:
    version: 1.13.0
    path: /Users/nameUser/.rbenv/shims/pod
SDKs:
  iOS SDK:
    Platforms:
      - DriverKit 23.0
      - iOS 17.0
      - macOS 14.0
      - tvOS 17.0
      - watchOS 10.0
  Android SDK: Not Found
IDEs:
  Android Studio: 2022.3 AI-223.8836.35.2231.10811636
  Xcode:
    version: 15.0/15A240d
    path: /usr/bin/xcodebuild
Languages:
  Java:
    version: 20.0.1
    path: /usr/bin/javac
  Ruby:
    version: 3.2.2
    path: /Users/nameUser/.rbenv/shims/ruby
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.72.5
    wanted: 0.72.5
  react-native-macos: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found

Steps to reproduce

I tried creating a new project in react native:

npx react-native@latest init myApp

@github-actions github-actions bot added the Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. label Oct 5, 2023
@github-actions
Copy link

github-actions bot commented Oct 5, 2023

⚠️ Missing Reproducible Example
ℹ️ We could not detect a reproducible example in your issue report. Please provide either:
  • If your bug is UI related: a Snack
  • If your bug is build/update related: use our Reproducer Template. A reproducer needs to be in a GitHub repository under your username.

@stephen-pearce
Copy link

stephen-pearce commented Oct 5, 2023

The problem appears to be that CocoaPods isn't using an exact version of the activesupport gem and while it needs 7.0.8 it's pulling in 7.1.0 which breaks things. A workaround I found is to update the Gemfile in the root with the following:
gem 'activesupport', '~> 7.0', '<= 7.0.8'

Then run bundle update --bundler in the root then bundle install and bundle exec pod install in the ios directory and everything should work.

@Angelk90
Copy link
Author

Angelk90 commented Oct 5, 2023

@stephen-pearce : Do you think this could be the problem?

ce39931

@stephen-pearce
Copy link

@Angelk90 That looks to be a solution to the problem if I understand it right. Hopefully this gets into a stable release soon

@radetsky
Copy link

radetsky commented Oct 5, 2023

I have the same thing. The solution suggested @stephen-pearce fix it. Thank you.

@Will-lopesz
Copy link

I'm having the same problem, when running init it gives the error, but it still creates the project, I spent the day thinking it was a problem with my machine, but no matter what I do nothing seems to solve it. I'm going to try the solution suggested above, I'm just afraid of having more problems with this in the future.

@Angelk90
Copy link
Author

Angelk90 commented Oct 5, 2023

@cipolleschi : Maybe you can tell us something.

@cipolleschi
Copy link
Contributor

Yeah, so... Unfortunately, Active Support released version 7.1.0 this morning, which is not compatible with Cocoapods.
I already pushed a fix on main: ce39931
The release crew is aware of that and they are working to release all the supported versions with the fix:

  • 0.70
  • 0.71
  • 0.72
  • 0.73.0-RC.2

Meanwhile, you can:

  • apply the changes shown in the commit above to your local Gemfile
  • run bundle install again to pull the right version of ActiveSupport (this is needed only once)
  • run bundle exec pod install to reinstall the pods.

I'm sorry for the inconvenience and thank you for your patience!

@cortinico cortinico added Resolution: Fixed A PR that fixes this issue has been merged. and removed Needs: Triage 🔍 Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. labels Oct 5, 2023
@mvalbuquerque
Copy link

Help!

Downloading template
✔ Copying template
✔ Processing template
✔ Installing Ruby Gems
✖ Installing CocoaPods dependencies (this may take a few minutes)
error bundler: failed to load command: pod (/Users/username/Desktop/Apps/AppFormulario/vendor/bundle/ruby/3.1.0/bin/pod)
/Users/username/Desktop/Apps/AppFormulario/vendor/bundle/ruby/3.1.0/gems/activesupport-7.1.0/lib/active_support/core_ext/array/conversions.rb:108:in <class:Array>': undefined method deprecator' for ActiveSupport:Module (NoMethodError)

deprecate to_default_s: :to_s, deprecator: ActiveSupport.deprecator
^^^^^^^^^^^
Did you mean? deprecate_constant
from /Users/mvalbuquerque/Desktop/Apps/AppFormulario/vendor/bundle/ruby/3.1.0/gems/activesupport-7.1.0/lib/active_support/core_ext/array/conversions.rb:8:in <top (required)>' from /Users/username/Desktop/Apps/AppFormulario/vendor/bundle/ruby/3.1.0/gems/cocoapods-1.13.0/lib/cocoapods.rb:9:in require'
from /Users/username/Desktop/Apps/AppFormulario/vendor/bundle/ruby/3.1.0/gems/cocoapods-1.13.0/lib/cocoapods.rb:9:in <top (required)>' from /Users/username/Desktop/Apps/AppFormulario/vendor/bundle/ruby/3.1.0/gems/cocoapods-1.13.0/bin/pod:36:in require'
from /Users/username/Desktop/Apps/AppFormulario/vendor/bundle/ruby/3.1.0/gems/cocoapods-1.13.0/bin/pod:36:in <top (required)>' from /Users/username/Desktop/Apps/AppFormulario/vendor/bundle/ruby/3.1.0/bin/pod:25:in load'
from /Users/username/Desktop/Apps/AppFormulario/vendor/bundle/ruby/3.1.0/bin/pod:25:in <top (required)>' from /Users/username/.rbenv/versions/3.1.2/lib/ruby/3.1.0/bundler/cli/exec.rb:58:in load'
from /Users/username/.rbenv/versions/3.1.2/lib/ruby/3.1.0/bundler/cli/exec.rb:58:in kernel_load' from /Users/username/.rbenv/versions/3.1.2/lib/ruby/3.1.0/bundler/cli/exec.rb:23:in run'
from /Users/username/.rbenv/versions/3.1.2/lib/ruby/3.1.0/bundler/cli.rb:484:in exec' from /Users/username/.rbenv/versions/3.1.2/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor/command.rb:27:in run'
from /Users/username/.rbenv/versions/3.1.2/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor/invocation.rb:127:in invoke_command' from /Users/username/.rbenv/versions/3.1.2/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor.rb:392:in dispatch'
from /Users/username/.rbenv/versions/3.1.2/lib/ruby/3.1.0/bundler/cli.rb:31:in dispatch' from /Users/username/.rbenv/versions/3.1.2/lib/ruby/3.1.0/bundler/vendor/thor/lib/thor/base.rb:485:in start'
from /Users/username/.rbenv/versions/3.1.2/lib/ruby/3.1.0/bundler/cli.rb:25:in start' from /Users/username/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.7/libexec/bundle:48:in block in <top (required)>'
from /Users/username/.rbenv/versions/3.1.2/lib/ruby/3.1.0/bundler/friendly_errors.rb:103:in with_friendly_errors' from /Users/username/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/bundler-2.3.7/libexec/bundle:36:in <top (required)>'
from /Users/username/.rbenv/versions/3.1.2/bin/bundle:25:in load' from /Users/username/.rbenv/versions/3.1.2/bin/bundle:25:in

'

@cipolleschi
Copy link
Contributor

cipolleschi commented Oct 6, 2023

@mvalbuquerque if you need to be unblocked:

  • apply the changes shown in 39931bc to your local Gemfiles.
  • Delege the Gemfile.lock
  • run bundle install again to pull the right version of ActiveSupport (this is needed only once)
  • run bundle exec pod install to reinstall the pods.

@kyadalu1
Copy link

kyadalu1 commented Oct 7, 2023

Shows 404

@muhammedyasirmt
Copy link

muhammedyasirmt commented Oct 8, 2023

@kyadalu1

  • add gem 'activesupport', '>= 6.1.7.3', '< 7.1.0' to Gemfile.
  • delete Gemfile.lock.
  • run cd ios && bundle install && cd ...
  • run npx pod-install

@cipolleschi
Copy link
Contributor

Thanks @muhammedyasirmt, that's the right fix.
Sorry @kyadalu1 for the 404.

@dpitts01
Copy link

@stephen-pearce Thanks a ton, works for us, too! Really appreciate this quick response.

@mvalbuquerque
Copy link

Hello! cipolleschi Thank you for your answer, the solution works for me, but it doesn't work when I run the command npx react-native@latest init AwesomeProject, I need to generate many projects in my classes, could you let me know when the fix comes out?

@mvalbuquerque
Copy link

Hello! This worked for me but not when creating the project :-(

alternative after generating the project

@cipolleschi
Copy link
Contributor

I need to generate many projects in my classes

What do you mean? If you have to generate many projects within the same React Native app, all the projects must have the updated ActiveSupport line.

Anyway, the Release crew is aiming to have 0.71 and 0.72 by the end of this week, if everything runs smoothly

@cipolleschi
Copy link
Contributor

Opening this to keep it as main issue for tracking the ActiveSupport problem.

@cipolleschi cipolleschi changed the title Error bundler: failed to load command: pod error bundler: failed to load command: pod, deprecate to_default_s: :to_s, deprecator: ActiveSupport.deprecator Oct 12, 2023
@cipolleschi cipolleschi changed the title error bundler: failed to load command: pod, deprecate to_default_s: :to_s, deprecator: ActiveSupport.deprecator error bundler: failed to load command: pod, deprecate to_default_s: :to_s, deprecator: ActiveSupport.deprecator Oct 12, 2023
@kelset kelset pinned this issue Oct 12, 2023
@kelset kelset added Platform: iOS iOS applications. Impact: Regression Describes a behavior that used to work on a prior release, but stopped working recently. labels Oct 12, 2023
@kelset
Copy link
Contributor

kelset commented Oct 12, 2023

just a quick update on this folks: patch releases for 71 and 72 are in the works as we speak. 0.70 will follow soon after.

@vksgautam1986

This comment was marked as off-topic.

@huntie huntie changed the title error bundler: failed to load command: pod, deprecate to_default_s: :to_s, deprecator: ActiveSupport.deprecator [FIXED] error bundler: failed to load command: pod, deprecate to_default_s: :to_s, deprecator: ActiveSupport.deprecator Oct 12, 2023
@huntie
Copy link
Member

huntie commented Oct 12, 2023

Resolved — please upgrade to react-native@0.72.6

We've shipped a fix for this bug as part of the latest React Native 0.72 patch release: https://github.com/facebook/react-native/releases/tag/v0.72.6.

Please upgrade to this version to resume successful iOS builds!

@Prabhat1933
Copy link

While Installing Bundle in Ios Directory Give following error
Fetching gem metadata from https://rubygems.org/.......
Installing ffi 1.16.3 with native extensions
--- ERROR REPORT TEMPLATE -------------------------------------------------------

Gem::FilePermissionError: You don't have write permissions for the /Users/user/Documents/Awesome/vendor/bundle/ruby/3.2.0 directory.
  /Users/user/.rbenv/versions/3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/installer.rb:713:in `verify_gem_home'
  /Users/user/.rbenv/versions/3.2.2/lib/ruby/site_ruby/3.2.0/rubygems/installer.rb:903:in `pre_install_checks'
  /Users/user/.gem/gems/bundler-2.4.21/lib/bundler/rubygems_gem_installer.rb:64:in `pre_install_checks'
  /Users/user/.gem/gems/bundler-2.4.21/lib/bundler/rubygems_gem_installer.rb:12:in `install'
  /Users/user/.gem/gems/bundler-2.4.21/lib/bundler/source/rubygems.rb:203:in `install'
  /Users/user/.gem/gems/bundler-2.4.21/lib/bundler/installer/gem_installer.rb:54:in `install'
  /Users/user/.gem/gems/bundler-2.4.21/lib/bundler/installer/gem_installer.rb:16:in `install_from_spec'
  /Users/user/.gem/gems/bundler-2.4.21/lib/bundler/installer/parallel_installer.rb:130:in `do_install'
  /Users/user/.gem/gems/bundler-2.4.21/lib/bundler/installer/parallel_installer.rb:121:in `block in worker_pool'
  /Users/user/.gem/gems/bundler-2.4.21/lib/bundler/worker.rb:62:in `apply_func'
  /Users/user/.gem/gems/bundler-2.4.21/lib/bundler/worker.rb:57:in `block in process_queue'
  /Users/user/.gem/gems/bundler-2.4.21/lib/bundler/worker.rb:54:in `loop'
  /Users/user/.gem/gems/bundler-2.4.21/lib/bundler/worker.rb:54:in `process_queue'
  /Users/user/.gem/gems/bundler-2.4.21/lib/bundler/worker.rb:90:in `block (2 levels) in create_threads'
Errno::EACCES: Permission denied @ rb_sysopen - /Users/user/Documents/Awesome/vendor/bundle/ruby/3.2.0/bundler.lock
  /Users/user/.gem/gems/bundler-2.4.21/lib/bundler/process_lock.rb:9:in `initialize'
  /Users/user/.gem/gems/bundler-2.4.21/lib/bundler/process_lock.rb:9:in `open'
  /Users/user/.gem/gems/bundler-2.4.21/lib/bundler/process_lock.rb:9:in `lock'
  /Users/user/.gem/gems/bundler-2.4.21/lib/bundler/installer.rb:71:in `run'
  /Users/user/.gem/gems/bundler-2.4.21/lib/bundler/installer.rb:23:in `install'
  /Users/user/.gem/gems/bundler-2.4.21/lib/bundler/cli/install.rb:62:in `run'
  /Users/user/.gem/gems/bundler-2.4.21/lib/bundler/cli.rb:261:in `block in install'
  /Users/user/.gem/gems/bundler-2.4.21/lib/bundler/settings.rb:142:in `temporary'
  /Users/user/.gem/gems/bundler-2.4.21/lib/bundler/cli.rb:260:in `install'
  /Users/user/.gem/gems/bundler-2.4.21/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
  /Users/user/.gem/gems/bundler-2.4.21/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
  /Users/user/.gem/gems/bundler-2.4.21/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
  /Users/user/.gem/gems/bundler-2.4.21/lib/bundler/cli.rb:34:in `dispatch'
  /Users/user/.gem/gems/bundler-2.4.21/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
  /Users/user/.gem/gems/bundler-2.4.21/lib/bundler/cli.rb:28:in `start'
  /Users/user/.gem/gems/bundler-2.4.21/exe/bundle:37:in `block in <top (required)>'
  /Users/user/.gem/gems/bundler-2.4.21/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
  /Users/user/.gem/gems/bundler-2.4.21/exe/bundle:29:in `<top (required)>'
  /Users/user/.rbenv/versions/3.2.2/bin/bundle:25:in `load'
  /Users/user/.rbenv/versions/3.2.2/bin/bundle:25:in `<main>'

Environment

Bundler       2.4.21
  Platforms   ruby, x86_64-darwin-22
Ruby          3.2.2p53 (2023-03-30 revision e51014f9c05aa65cbf203442d37fef7c12390015) [x86_64-darwin-22]
  Full Path   /Users/user/.rbenv/versions/3.2.2/bin/ruby
  Config Dir  /Users/user/.rbenv/versions/3.2.2/etc
RubyGems      3.4.21
  Gem Home    /Users/user/Documents/Awesome/vendor/bundle/ruby/3.2.0
  Gem Path    /Users/user/Documents/Awesome/vendor/bundle/ruby/3.2.0
  User Home   /Users/user
  User Path   /Users/user/.gem/ruby/3.2.0
  Bin Dir     /Users/user/Documents/Awesome/vendor/bundle/ruby/3.2.0/bin
OpenSSL       
  Compiled    OpenSSL 3.1.3 19 Sep 2023
  Loaded      OpenSSL 3.1.3 19 Sep 2023
  Cert File   /Users/user/.rbenv/versions/3.2.2/openssl/ssl/cert.pem
  Cert Dir    /Users/user/.rbenv/versions/3.2.2/openssl/ssl/certs
Tools         
  Git         2.39.2 (Apple Git-143)
  RVM         not installed
  rbenv       rbenv 1.2.0
  chruby      0.3.9

Bundler Build Metadata

Built At          2023-10-17
Git SHA           d10b46bd15
Released Version  true

Bundler settings

force_ruby_platform
  Set for your local app (/Users/user/Documents/Awesome/.bundle/config): true
path
  Set for your local app (/Users/user/Documents/Awesome/.bundle/config): "vendor/bundle"

Gemfile

../Gemfile

source 'https://rubygems.org'

# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
ruby ">= 2.6.10"

gem 'cocoapods', '~> 1.13'
gem 'activesupport', '>= 6.1.7.3', '< 7.1.0'

../Gemfile.lock

GEM
  remote: https://rubygems.org/
  specs:
    CFPropertyList (3.0.6)
      rexml
    activesupport (7.0.8)
      concurrent-ruby (~> 1.0, >= 1.0.2)
      i18n (>= 1.6, < 2)
      minitest (>= 5.1)
      tzinfo (~> 2.0)
    addressable (2.8.5)
      public_suffix (>= 2.0.2, < 6.0)
    algoliasearch (1.27.5)
      httpclient (~> 2.8, >= 2.8.3)
      json (>= 1.5.1)
    atomos (0.1.3)
    claide (1.1.0)
    cocoapods (1.13.0)
      addressable (~> 2.8)
      claide (>= 1.0.2, < 2.0)
      cocoapods-core (= 1.13.0)
      cocoapods-deintegrate (>= 1.0.3, < 2.0)
      cocoapods-downloader (>= 1.6.0, < 2.0)
      cocoapods-plugins (>= 1.0.0, < 2.0)
      cocoapods-search (>= 1.0.0, < 2.0)
      cocoapods-trunk (>= 1.6.0, < 2.0)
      cocoapods-try (>= 1.1.0, < 2.0)
      colored2 (~> 3.1)
      escape (~> 0.0.4)
      fourflusher (>= 2.3.0, < 3.0)
      gh_inspector (~> 1.0)
      molinillo (~> 0.8.0)
      nap (~> 1.0)
      ruby-macho (>= 2.3.0, < 3.0)
      xcodeproj (>= 1.23.0, < 2.0)
    cocoapods-core (1.13.0)
      activesupport (>= 5.0, < 8)
      addressable (~> 2.8)
      algoliasearch (~> 1.0)
      concurrent-ruby (~> 1.1)
      fuzzy_match (~> 2.0.4)
      nap (~> 1.0)
      netrc (~> 0.11)
      public_suffix (~> 4.0)
      typhoeus (~> 1.0)
    cocoapods-deintegrate (1.0.5)
    cocoapods-downloader (1.6.3)
    cocoapods-plugins (1.0.0)
      nap
    cocoapods-search (1.0.1)
    cocoapods-trunk (1.6.0)
      nap (>= 0.8, < 2.0)
      netrc (~> 0.11)
    cocoapods-try (1.2.0)
    colored2 (3.1.2)
    concurrent-ruby (1.2.2)
    escape (0.0.4)
    ethon (0.16.0)
      ffi (>= 1.15.0)
    ffi (1.16.3)
    fourflusher (2.3.1)
    fuzzy_match (2.0.4)
    gh_inspector (1.1.3)
    httpclient (2.8.3)
    i18n (1.14.1)
      concurrent-ruby (~> 1.0)
    json (2.6.3)
    minitest (5.20.0)
    molinillo (0.8.0)
    nanaimo (0.3.0)
    nap (1.1.0)
    netrc (0.11.0)
    public_suffix (4.0.7)
    rexml (3.2.6)
    ruby-macho (2.5.1)
    typhoeus (1.4.0)
      ethon (>= 0.9.0)
    tzinfo (2.0.6)
      concurrent-ruby (~> 1.0)
    xcodeproj (1.23.0)
      CFPropertyList (>= 2.3.3, < 4.0)
      atomos (~> 0.1.3)
      claide (>= 1.0.2, < 2.0)
      colored2 (~> 3.1)
      nanaimo (~> 0.3.0)
      rexml (~> 3.2.4)

PLATFORMS
  ruby

DEPENDENCIES
  activesupport (>= 6.1.7.3, < 7.1.0)
  cocoapods (~> 1.13)

RUBY VERSION
   ruby 3.2.2p53

BUNDLED WITH
   2.4.21

--- TEMPLATE END ----------------------------------------------------------------

Unfortunately, an unexpected error occurred, and Bundler cannot continue.

First, try this link to see if there are any existing issue reports for this error:
https://github.com/rubygems/rubygems/search?q=You+don%27t+have+write+permissions+for+the+%2FUsers%2Fuser%2FDocuments%2FAwesome%2Fvendor%2Fbundle%2Fruby%2F3.2.0+directory.&type=Issues

If there aren't any reports for this error yet, please fill in the new issue form located at https://github.com/rubygems/rubygems/issues/new?labels=Bundler&template=bundler-related-issue.md, and copy and paste the report template above in there.

@cipolleschi
Copy link
Contributor

@Prabhat1933 which version of React Native are you using? And what command have you issued?

Please try:

  • navigate to your project root
  • rm -rf vendor/
  • rm -rf Gemfile.lock
  • cd ios
  • bundle install
  • bundle exec pod install

Anyway, the error says Gem::FilePermissionError: You don't have write permissions for the /Users/user/Documents/Awesome/vendor/bundle/ruby/3.2.0 directory so it seems a different error, and a Permission one, so probably related to your local environment.

@Prabhat1933
Copy link

@Prabhat1933 which version of React Native are you using? And what command have you issued?

Please try:

  • navigate to your project root
  • rm -rf vendor/
  • rm -rf Gemfile.lock
  • cd ios
  • bundle install
  • bundle exec pod install

Anyway, the error says Gem::FilePermissionError: You don't have write permissions for the /Users/user/Documents/Awesome/vendor/bundle/ruby/3.2.0 directory so it seems a different error, and a Permission one, so probably related to your local environment.

Thank u so much it worked . I was Trying same step before from documentation but it was not working but this time it worked

@Prabhat1933

This comment was marked as off-topic.

@cipolleschi
Copy link
Contributor

@Prabhat1933 this is a different issue, so, please, open a new one. Let's not pollute this issue for people looking at solution for Ruby failures.

@kelset kelset unpinned this issue Dec 15, 2023
ipdae added a commit to planetarium/NineChronicles that referenced this issue Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦Bundler Impact: Regression Describes a behavior that used to work on a prior release, but stopped working recently. Platform: iOS iOS applications. Resolution: Fixed A PR that fixes this issue has been merged.
Projects
None yet
Development

No branches or pull requests