首页 > 解决方案 > React Native Pod 安装失败

问题描述

pod install 失败,下面的 FrozenError 和 BadURIError 似乎是原因:

CocoaPodsError: Command `pod install` failed.
└─ Cause: pod exited with non-zero code: 1
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby

    stderr: '/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/universal-darwin20/rbconfig.rb:229: warning: Insecure world writable dir /Users/cedricnicolas/Downloads in PATH, mode 040707\n' +
      '\u001b[33m\n' +
      "[!] NPM package '@react-native-firebase/auth' depends on '@react-native-firebase/app' v8.4.3 but found v8.4.1, this might cause build issues or runtime crashes.\u001b[0m\n" +
      '\u001b[33m\n' +
      "[!] NPM package '@react-native-firebase/storage' depends on '@react-native-firebase/app' v9.0.0 but found v8.4.1, this might cause build issues or runtime crashes.\u001b[0m\n" +
      "/Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/user_interface/error_report.rb:34:in `force_encoding': can't modify frozen String (FrozenError)\n" +
      "\tfrom /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.11.2/lib/cocoapods/user_interface/error_report.rb:34:in `report'\n" +
      "
      "/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/uri/generic.rb:1490:in `find_proxy': relative URI: /Users/cedricnicolas/Documents/DizzitupSource.nosync/dizzitup/client/dizzitapp/node_modules/react-native/third-party-podspecs/Folly.podspec (URI::BadURIError)\n" +

我尝试了很多东西,我的 RC 版本是:react-native-cli: 2.0.1 react-native: 0.66.3

有什么线索吗?

标签: iosreact-nativecocoapods

解决方案


推荐阅读