使用EAS Build构建React Native iOS项目时Pod Install失败求助
EAS Build构建React Native iOS应用时pod install报错
环境信息:
- Expo 44
- Mac M1
- CocoaPods 1.12.1
- Ruby 2.6.10
使用EAS Build构建React Native iOS应用,其他步骤均正常,但在iOS目录执行pod install时出现错误,错误日志如下:
⚠️ react-native-unimodules is deprecated in favor of expo ⚠️ Follow this guide to migrate: https://expo.fyi/expo-modules-migration Using Expo modules Analyzing dependencies Fetching podspec for `DoubleConversion` from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec` Fetching podspec for `Folly` from `../node_modules/react-native/third-party-podspecs/Folly.podspec` [stderr] /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.11.3/lib/cocoapods/user_interface/error_report.rb:34:in `force_encoding': can't modify frozen String: "relative URI: /Users/expo/workingdir/build/node_modules/react-native/third-party-podspecs/Folly.podspec" (FrozenError) [stderr] from /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.11.3/lib/cocoapods/user_interface/error_report.rb:34:in `report' [stderr] from /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.11.3/lib/cocoapods/command.rb:66:in `report_error' [stderr] from /usr/local/lib/ruby/gems/2.7.0/gems/claide-1.1.0/lib/claide/command.rb:396:in `handle_exception' [stderr] from /usr/local/lib/ruby/gems/2.7.0/gems/claide-1.1.0/lib/claide/command.rb:337:in `rescue in run' [stderr] from /usr/local/lib/ruby/gems/2.7.0/gems/claide-1.1.0/lib/claide/command.rb:324:in `run' [stderr] from /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.11.3/lib/cocoapods/command.rb:52:in `run' [stderr] from /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.11.3/bin/pod:55:in `<top (required)>' [stderr] from /usr/local/lib/ruby/gems/2.7.0/bin/pod:23:in `load' [stderr] from /usr/local/lib/ruby/gems/2.7.0/bin/pod:23:in `<main>' [stderr] /usr/local/Cellar/ruby@2.7/2.7.5/lib/ruby/2.7.0/uri/generic.rb:1491:in `find_proxy': relative URI: /Users/expo/workingdir/build/node_modules/react-native/third-party-podspecs/Folly.podspec (URI::BadURIError) [stderr] from /usr/local/Cellar/ruby@2.7/2.7.5/lib/ruby/2.7.0/open-uri.rb:218:in `block in open_loop' [stderr] from /usr/local/Cellar/ruby@2.7/2.7.5/lib/ruby/2.7.0/open-uri.rb:235:in `block in open_loop' [stderr] from /usr/local/Cellar/ruby@2.7/2.7.5/lib/ruby/2.7.0/open-uri.rb:233:in `catch' [stderr] from /usr/local/Cellar/ruby@2.7/2.7.5/lib/ruby/2.7.0/open-uri.rb:233:in `open_loop' [stderr] from /usr/local/Cellar/ruby@2.7/2.7.5/lib/ruby/2.7.0/open-uri.rb:174:in `open_uri' [stderr] from /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.11.3/lib/cocoapods/external_sources/podspec_source.rb:19:in `block in fetch' [stderr] from /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.11.3/lib/cocoapods/user_interface.rb:86:in `titled_section' [stderr] from /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.11.3/lib/cocoapods/external_sources/podspec_source.rb:11:in `fetch' [stderr] from /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/analyzer.rb:993:in `fetch_external_source' [stderr] from /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/analyzer.rb:972:in `block (2 levels) in fetch_external_sources' [stderr] from /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/analyzer.rb:971:in `each' [stderr] from /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/analyzer.rb:971:in `block in fetch_external_sources' [stderr] from /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.11.3/lib/cocoapods/user_interface.rb:64:in `section' [stderr] from /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/analyzer.rb:970:in `fetch_external_sources' [stderr] from /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.11.3/lib/cocoapods/installer/analyzer.rb:117:in `analyze' [stderr] from /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:416:in `analyze' [stderr] from /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:241:in `block in resolve_dependencies' [stderr] from /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.11.3/lib/cocoapods/user_interface.rb:64:in `section' [stderr] from /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:240:in `resolve_dependencies' [stderr] from /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:161:in `install!' [stderr] from /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.11.3/lib/cocoapods/command/install.rb:52:in `run' [stderr] from /usr/local/lib/ruby/gems/2.7.0/gems/claide-1.1.0/lib/claide/command.rb:334:in `run' [stderr] from /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.11.3/lib/cocoapods/command.rb:52:in `run' [stderr] from /usr/local/lib/ruby/gems/2.7.0/gems/cocoapods-1.11.3/bin/pod:55:in `<top (required)>' [stderr] from /usr/local/lib/ruby/gems/2.7.0/bin/pod:23:in `load' [stderr] from /usr/local/lib/ruby/gems/2.7.0/bin/pod:23:in `<main>' pod exited with non-zero code: 1
Podfile截图:
已尝试谷歌搜索相关错误,但未找到解决方案,特此求助。
内容的提问来源于stack exchange,提问作者Mathieu Lecherbonnier
相关产品推荐
相关产品推荐

