You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could not find proper version of cocoapods (1.15.2) in any of the sources
Steps to reproduce
hj_rn cd /Users/huafang/Documents/dev/rn/hj_rn/ios
➜ ios pod install
Could not find proper version of cocoapods (1.15.2) in any of the sources
Run bundle install to install missing gems.
➜ ios brew link --overwrite cocoapods
Warning: Already linked: /opt/homebrew/Cellar/cocoapods/1.16.2_1
To relink, run:
brew unlink cocoapods && brew link cocoapods
➜ ios pod install
Could not find proper version of cocoapods (1.15.2) in any of the sources
Run bundle install to install missing gems.
➜ ios bundle install
/Users/huafang/Documents/dev/rn/hj_rn/vendor/bundle/ruby/3.2.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:272:in search_up': undefined method untaint' for "/Users/huafang/Documents/dev/rn/hj_rn/ios":String (NoMethodError)
current = File.expand_path(SharedHelpers.pwd).untaint
^^^^^^^^
from /Users/huafang/Documents/dev/rn/hj_rn/vendor/bundle/ruby/3.2.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:259:in `find_file'
from /Users/huafang/Documents/dev/rn/hj_rn/vendor/bundle/ruby/3.2.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:251:in `find_gemfile'
from /Users/huafang/Documents/dev/rn/hj_rn/vendor/bundle/ruby/3.2.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:27:in `root'
from /Users/huafang/Documents/dev/rn/hj_rn/vendor/bundle/ruby/3.2.0/gems/bundler-1.17.2/lib/bundler.rb:234:in `root'
from /Users/huafang/Documents/dev/rn/hj_rn/vendor/bundle/ruby/3.2.0/gems/bundler-1.17.2/lib/bundler.rb:246:in `app_config_path'
from /Users/huafang/Documents/dev/rn/hj_rn/vendor/bundle/ruby/3.2.0/gems/bundler-1.17.2/lib/bundler.rb:273:in `settings'
from /Users/huafang/Documents/dev/rn/hj_rn/vendor/bundle/ruby/3.2.0/gems/bundler-1.17.2/lib/bundler/feature_flag.rb:21:in `block in settings_method'
from /Users/huafang/Documents/dev/rn/hj_rn/vendor/bundle/ruby/3.2.0/gems/bundler-1.17.2/lib/bundler/cli.rb:97:in `<class:CLI>'
from /Users/huafang/Documents/dev/rn/hj_rn/vendor/bundle/ruby/3.2.0/gems/bundler-1.17.2/lib/bundler/cli.rb:7:in `<module:Bundler>'
from /Users/huafang/Documents/dev/rn/hj_rn/vendor/bundle/ruby/3.2.0/gems/bundler-1.17.2/lib/bundler/cli.rb:6:in `<top (required)>'
from <internal:/Users/huafang/.rvm/rubies/ruby-3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from <internal:/Users/huafang/.rvm/rubies/ruby-3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from /Users/huafang/Documents/dev/rn/hj_rn/vendor/bundle/ruby/3.2.0/gems/bundler-1.17.2/exe/bundle:23:in `block in <top (required)>'
from /Users/huafang/Documents/dev/rn/hj_rn/vendor/bundle/ruby/3.2.0/gems/bundler-1.17.2/lib/bundler/friendly_errors.rb:124:in `with_friendly_errors'
from /Users/huafang/Documents/dev/rn/hj_rn/vendor/bundle/ruby/3.2.0/gems/bundler-1.17.2/exe/bundle:22:in `<top (required)>'
from /Users/huafang/.rvm/rubies/ruby-3.2.2/bin/bundle:25:in `load'
from /Users/huafang/.rvm/rubies/ruby-3.2.2/bin/bundle:25:in `<main>'
from /Users/huafang/.rvm/rubies/ruby-3.2.2/bin/ruby_executable_hooks:22:in `eval'
from /Users/huafang/.rvm/rubies/ruby-3.2.2/bin/ruby_executable_hooks:22:in `<main>'
➜ ios pod --version
Could not find proper version of cocoapods (1.15.2) in any of the sources
Run bundle install to install missing gems.
but in other path can find cocoapods
➜ hu_ios git:(20250226_weibo_sdk_update) pod --version
1.16.2
➜ hj_rn npx @react-native-community/cli info
info Fetching system and libraries information...
System:
OS: macOS 15.2
CPU: (8) arm64 Apple M1
Memory: 107.28 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 18.20.7
path: ~/.nvm/versions/node/v18.20.7/bin/node
Yarn:
version: 1.22.22
path: ~/.nvm/versions/node/v18.20.7/bin/yarn
npm:
version: 10.8.2
path: ~/.nvm/versions/node/v18.20.7/bin/npm
Watchman:
version: 2025.02.17.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods: Not Found
SDKs:
iOS SDK:
Platforms:
- DriverKit 24.2
- iOS 18.2
- macOS 15.2
- tvOS 18.2
- visionOS 2.2
- watchOS 11.2
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Xcode:
version: 16.2/16C5032a
path: /usr/bin/xcodebuild
Languages:
Java:
version: javac 23
path: /usr/bin/javac
Ruby:
version: 3.2.2
path: /Users/huafang/.rvm/rubies/ruby-3.2.2/bin/ruby
npmPackages:
"@react-native-community/cli":
installed: 15.0.1
wanted: 15.0.1
react:
installed: 19.0.0
wanted: 19.0.0
react-native:
installed: 0.78.0
wanted: 0.78.0
react-native-macos: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: Not found
newArchEnabled: false
➜ hj_rn npm info react-native
[email protected] | MIT | deps: 36 | versions: 2088
A framework for building native apps using React
➜ hj_rn npx @react-native-community/cli info
info Fetching system and libraries information...
System:
OS: macOS 15.2
CPU: (8) arm64 Apple M1
Memory: 107.28 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 18.20.7
path: ~/.nvm/versions/node/v18.20.7/bin/node
Yarn:
version: 1.22.22
path: ~/.nvm/versions/node/v18.20.7/bin/yarn
npm:
version: 10.8.2
path: ~/.nvm/versions/node/v18.20.7/bin/npm
Watchman:
version: 2025.02.17.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods: Not Found
SDKs:
iOS SDK:
Platforms:
- DriverKit 24.2
- iOS 18.2
- macOS 15.2
- tvOS 18.2
- visionOS 2.2
- watchOS 11.2
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Xcode:
version: 16.2/16C5032a
path: /usr/bin/xcodebuild
Languages:
Java:
version: javac 23
path: /usr/bin/javac
Ruby:
version: 3.2.2
path: /Users/huafang/.rvm/rubies/ruby-3.2.2/bin/ruby
npmPackages:
"@react-native-community/cli":
installed: 15.0.1
wanted: 15.0.1
react:
installed: 19.0.0
wanted: 19.0.0
react-native:
installed: 0.78.0
wanted: 0.78.0
react-native-macos: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: Not found
newArchEnabled: false
➜ hj_rn npm info react-native
[email protected] | MIT | deps: 36 | versions: 2088
A framework for building native apps using React
React Native Version
0.78.0
Affected Platforms
Runtime - iOS
Output of npx @react-native-community/cli info
➜ hj_rn npx @react-native-community/cli info
info Fetching system and libraries information...
System:
OS: macOS 15.2
CPU: (8) arm64 Apple M1
Memory: 107.28 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 18.20.7
path: ~/.nvm/versions/node/v18.20.7/bin/node
Yarn:
version: 1.22.22
path: ~/.nvm/versions/node/v18.20.7/bin/yarn
npm:
version: 10.8.2
path: ~/.nvm/versions/node/v18.20.7/bin/npm
Watchman:
version: 2025.02.17.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods: Not Found
SDKs:
iOS SDK:
Platforms:
- DriverKit 24.2
- iOS 18.2
- macOS 15.2
- tvOS 18.2
- visionOS 2.2
- watchOS 11.2
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Xcode:
version: 16.2/16C5032a
path: /usr/bin/xcodebuild
Languages:
Java:
version: javac 23
path: /usr/bin/javac
Ruby:
version: 3.2.2
path: /Users/huafang/.rvm/rubies/ruby-3.2.2/bin/ruby
npmPackages:
"@react-native-community/cli":
installed: 15.0.1
wanted: 15.0.1
react:
installed: 19.0.0
wanted: 19.0.0
react-native:
installed: 0.78.0
wanted: 0.78.0
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: Not found
newArchEnabled: false
➜ hj_rn npm info react-native
[email protected] | MIT | deps: 36 | versions: 2088
A framework for building native apps using React
Stacktrace or Logs
➜ hj_rn npx react-native doctor
⠴ Running diagnostics.../bin/sh: adb: command not found
Common
✓ Node.js - Required to execute JavaScript code
✓ npm - Required to install NPM dependencies
✓ Watchman - Used for watching changes in the filesystem when in development mode
✓ Metro - Required for bundling the JavaScript code
Android
✖ Adb - No devices and/or emulators connected. Please create emulator with Android Studio or connect Android device.
✖ JDK - Required to compile Java code
- Version found: javac 23
- Version supported: >= 17 <= 20
✖ Android Studio - Required for building and installing your app on Android
✖ ANDROID_HOME - Environment variable that points to your Android SDK installation
✓ Gradlew - Build tool required for Android builds
✖ Android SDK - Required for building and installing your app on Android
- Versions found: N/A
- Version supported: 35.0.0
iOS
✓ Xcode - Required for building and installing your app on iOS
✓ Ruby - Required for installing iOS dependencies
✖ CocoaPods - Required for installing iOS dependencies
- Version found: N/A
- Version supported: >= 1.10.0
✓ ios-deploy - Required for installing your app on a physical device with the CLI
✓ .xcode.env - File to customize Xcode environment
Errors: 6
Warnings: 0
Description
Could not find proper version of cocoapods (1.15.2) in any of the sources
Steps to reproduce
hj_rn cd /Users/huafang/Documents/dev/rn/hj_rn/ios
➜ ios pod install
Could not find proper version of cocoapods (1.15.2) in any of the sources
Run
bundle install
to install missing gems.➜ ios brew link --overwrite cocoapods
Warning: Already linked: /opt/homebrew/Cellar/cocoapods/1.16.2_1
To relink, run:
brew unlink cocoapods && brew link cocoapods
➜ ios pod install
Could not find proper version of cocoapods (1.15.2) in any of the sources
Run
bundle install
to install missing gems.➜ ios bundle install
/Users/huafang/Documents/dev/rn/hj_rn/vendor/bundle/ruby/3.2.0/gems/bundler-1.17.2/lib/bundler/shared_helpers.rb:272:in
search_up': undefined method
untaint' for "/Users/huafang/Documents/dev/rn/hj_rn/ios":String (NoMethodError)➜ ios pod --version
Could not find proper version of cocoapods (1.15.2) in any of the sources
Run
bundle install
to install missing gems.but in other path can find cocoapods
➜ hu_ios git:(20250226_weibo_sdk_update) pod --version
1.16.2
➜ hj_rn npx @react-native-community/cli info
info Fetching system and libraries information...
System:
OS: macOS 15.2
CPU: (8) arm64 Apple M1
Memory: 107.28 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 18.20.7
path: ~/.nvm/versions/node/v18.20.7/bin/node
Yarn:
version: 1.22.22
path: ~/.nvm/versions/node/v18.20.7/bin/yarn
npm:
version: 10.8.2
path: ~/.nvm/versions/node/v18.20.7/bin/npm
Watchman:
version: 2025.02.17.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods: Not Found
SDKs:
iOS SDK:
Platforms:
- DriverKit 24.2
- iOS 18.2
- macOS 15.2
- tvOS 18.2
- visionOS 2.2
- watchOS 11.2
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Xcode:
version: 16.2/16C5032a
path: /usr/bin/xcodebuild
Languages:
Java:
version: javac 23
path: /usr/bin/javac
Ruby:
version: 3.2.2
path: /Users/huafang/.rvm/rubies/ruby-3.2.2/bin/ruby
npmPackages:
"@react-native-community/cli":
installed: 15.0.1
wanted: 15.0.1
react:
installed: 19.0.0
wanted: 19.0.0
react-native:
installed: 0.78.0
wanted: 0.78.0
react-native-macos: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: Not found
newArchEnabled: false
➜ hj_rn npm info react-native
[email protected] | MIT | deps: 36 | versions: 2088
A framework for building native apps using React
➜ hj_rn npx @react-native-community/cli info
info Fetching system and libraries information...
System:
OS: macOS 15.2
CPU: (8) arm64 Apple M1
Memory: 107.28 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 18.20.7
path: ~/.nvm/versions/node/v18.20.7/bin/node
Yarn:
version: 1.22.22
path: ~/.nvm/versions/node/v18.20.7/bin/yarn
npm:
version: 10.8.2
path: ~/.nvm/versions/node/v18.20.7/bin/npm
Watchman:
version: 2025.02.17.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods: Not Found
SDKs:
iOS SDK:
Platforms:
- DriverKit 24.2
- iOS 18.2
- macOS 15.2
- tvOS 18.2
- visionOS 2.2
- watchOS 11.2
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Xcode:
version: 16.2/16C5032a
path: /usr/bin/xcodebuild
Languages:
Java:
version: javac 23
path: /usr/bin/javac
Ruby:
version: 3.2.2
path: /Users/huafang/.rvm/rubies/ruby-3.2.2/bin/ruby
npmPackages:
"@react-native-community/cli":
installed: 15.0.1
wanted: 15.0.1
react:
installed: 19.0.0
wanted: 19.0.0
react-native:
installed: 0.78.0
wanted: 0.78.0
react-native-macos: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: true
newArchEnabled: true
iOS:
hermesEnabled: Not found
newArchEnabled: false
➜ hj_rn npm info react-native
[email protected] | MIT | deps: 36 | versions: 2088
A framework for building native apps using React
React Native Version
0.78.0
Affected Platforms
Runtime - iOS
Output of
npx @react-native-community/cli info
Stacktrace or Logs
Reproducer
https://reactnative.cn/docs/environment-setup
Screenshots and Videos
No response
The text was updated successfully, but these errors were encountered: