Closed exotexot closed 11 months ago
:warning: | Missing Reproducible Example |
---|---|
:information_source: | We could not detect a reproducible example in your issue report. Please provide either:
|
Actually, I think this issue may just be related to macOS Sonoma, because not just rn 0.72.5 is affect but also lower versions...
In the meantime I realised I didn't launched, and agreed to the latest Xcode Terms, so I had to do that. And I also updated to the latest ruby version, As I wasn't sure if ruby got messed up, because on the previous macOS version I installed rbenv to manage ruby versions...
Still crashing though with other problems now:
✔ Installing Ruby Gems
✖ Installing CocoaPods dependencies (this may take a few minutes)
error bundler: failed to load command: pod (/Users/vinzenz/Repositories/test0724123/vendor/bundle/ruby/3.2.0/bin/pod)
/Users/vinzenz/Repositories/test0724123/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/vinzenz/Repositories/test0724123/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/vinzenz/.rbenv/versions/3.2.1/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
from <internal:/Users/vinzenz/.rbenv/versions/3.2.1/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
from /Users/vinzenz/Repositories/test0724123/vendor/bundle/ruby/3.2.0/gems/cocoapods-1.13.0/lib/cocoapods.rb:9:in `<top (required)>'
from <internal:/Users/vinzenz/.rbenv/versions/3.2.1/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
from <internal:/Users/vinzenz/.rbenv/versions/3.2.1/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
from /Users/vinzenz/Repositories/test0724123/vendor/bundle/ruby/3.2.0/gems/cocoapods-1.13.0/bin/pod:36:in `<top (required)>'
from /Users/vinzenz/Repositories/test0724123/vendor/bundle/ruby/3.2.0/bin/pod:25:in `load'
from /Users/vinzenz/Repositories/test0724123/vendor/bundle/ruby/3.2.0/bin/pod:25:in `<top (required)>'
from /Users/vinzenz/.rbenv/versions/3.2.1/lib/ruby/3.2.0/bundler/cli/exec.rb:58:in `load'
from /Users/vinzenz/.rbenv/versions/3.2.1/lib/ruby/3.2.0/bundler/cli/exec.rb:58:in `kernel_load'
from /Users/vinzenz/.rbenv/versions/3.2.1/lib/ruby/3.2.0/bundler/cli/exec.rb:23:in `run'
from /Users/vinzenz/.rbenv/versions/3.2.1/lib/ruby/3.2.0/bundler/cli.rb:491:in `exec'
from /Users/vinzenz/.rbenv/versions/3.2.1/lib/ruby/3.2.0/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
from /Users/vinzenz/.rbenv/versions/3.2.1/lib/ruby/3.2.0/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
from /Users/vinzenz/.rbenv/versions/3.2.1/lib/ruby/3.2.0/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
from /Users/vinzenz/.rbenv/versions/3.2.1/lib/ruby/3.2.0/bundler/cli.rb:34:in `dispatch'
from /Users/vinzenz/.rbenv/versions/3.2.1/lib/ruby/3.2.0/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
from /Users/vinzenz/.rbenv/versions/3.2.1/lib/ruby/3.2.0/bundler/cli.rb:28:in `start'
from /Users/vinzenz/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/bundler-2.4.6/libexec/bundle:45:in `block in <top (required)>'
from /Users/vinzenz/.rbenv/versions/3.2.1/lib/ruby/3.2.0/bundler/friendly_errors.rb:117:in `with_friendly_errors'
from /Users/vinzenz/.rbenv/versions/3.2.1/lib/ruby/gems/3.2.0/gems/bundler-2.4.6/libexec/bundle:33:in `<top (required)>'
from /Users/vinzenz/.rbenv/versions/3.2.1/bin/bundle:25:in `load'
from /Users/vinzenz/.rbenv/versions/3.2.1/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.
info Run CLI with --verbose flag for more details.
@exotexot the same condition happened in my mac m1, trying to find the solution
I'm having the exact same issue.
Apparently it's fixed by https://github.com/facebook/react-native/commit/ce39931bc2b02f13cbc5751ba4d4a6dbc07bc91a by @cipolleschi but is not in a patch?
Duplicated of #39832
As Kelset said, it is fixed in main, we are doing releases to make React Native working again.
Description
When I try to initialise a new project, it fails, because installation of bigdecimal fails.
React Native Version
0.72.5
Output of
npx react-native info
info Fetching system and libraries information... System: OS: macOS 14.0 CPU: (16) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz Memory: 2.57 GB / 32.00 GB Shell: version: 3.6.1 path: /usr/local/bin/fish Binaries: Node: version: 18.1.0 path: ~/.nvm/versions/node/v18.1.0/bin/node Yarn: version: 1.22.10 path: /usr/local/bin/yarn npm: version: 8.8.0 path: ~/.nvm/versions/node/v18.1.0/bin/npm Watchman: version: 2023.07.10.00 path: /usr/local/bin/watchman Managers: CocoaPods: Not Found SDKs: iOS SDK: Not Found Android SDK: Android NDK: 22.1.7171670 IDEs: Android Studio: 2022.3 AI-223.8836.35.2231.10811636 Xcode: version: 15.0/15A240d path: /usr/bin/xcodebuild Languages: Java: version: 11.0.17 path: /Library/Java/JavaVirtualMachines/zulu-11.jdk/Contents/Home/bin/javac Ruby: version: 2.7.6 path: /Users/vinzenz/.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
npx react-native@latest init myApp
Snack, screenshot, or link to a repository
Can't.