React 本机项目未在 IOS 中运行

问题描述 投票:0回答:1

这是我在 IOS 15 设备中运行该项目时出现的错误。它没有安装pod(pod install),我尝试了太多东西但仍然无法得到任何解决方案。

englishmuni@Englishs-Mac-mini ios % pod install
Traceback (most recent call last):
        9: from /Users/englishmuni/.rvm/gems/ruby-2.7.5/bin/ruby_executable_hooks:22:in `<main>'
        8: from /Users/englishmuni/.rvm/gems/ruby-2.7.5/bin/ruby_executable_hooks:22:in `eval'
        7: from /Users/englishmuni/.rvm/gems/ruby-2.7.5/bin/pod:23:in `<main>'
        6: from /Users/englishmuni/.rvm/gems/ruby-2.7.5/bin/pod:23:in `load'
        5: from /Users/englishmuni/Documents/Project/AwesomeProject/vendor/bundle/ruby/2.7.0/gems/cocoapods-1.13.0/bin/pod:36:in `<top (required)>'
        4: from /Users/englishmuni/Documents/Project/AwesomeProject/vendor/bundle/ruby/2.7.0/gems/cocoapods-1.13.0/bin/pod:36:in `require'
        3: from /Users/englishmuni/Documents/Project/AwesomeProject/vendor/bundle/ruby/2.7.0/gems/cocoapods-1.13.0/lib/cocoapods.rb:9:in `<top (required)>'
        2: from /Users/englishmuni/Documents/Project/AwesomeProject/vendor/bundle/ruby/2.7.0/gems/cocoapods-1.13.0/lib/cocoapods.rb:9:in `require'
        1: from /Users/englishmuni/Documents/Project/AwesomeProject/vendor/bundle/ruby/2.7.0/gems/activesupport-7.1.0/lib/active_support/core_ext/array/conversions.rb:8:in `<top (required)>'
/Users/englishmuni/Documents/Project/AwesomeProject/vendor/bundle/ruby/2.7.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)
Did you mean?  deprecate_constant
englishmuni@Englishs-Mac-mini ios % 

这是我在 IOS 模拟器中运行项目时的错误,

Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project AwesomeProject.xcodeproj -configuration Debug -scheme AwesomeProject -destination id=3CFEB6FE-7545-4BB9-BFAD-177A0CF3DE2C

User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES

Prepare packages

ComputeTargetDependencyGraph
note: Building targets in dependency order
note: Target dependency graph (1 target)
    Target 'AwesomeProject' in project 'AwesomeProject' (no dependencies)

GatherProvisioningInputs

CreateBuildDescription
ruby react-native rubygems cocoapods ios15
1个回答
0
投票

可能会出现与 ruby 版本不兼容的问题。

检查 Ruby gem 文件cocoapodsbundler 的版本,并根据需要进行更新。

© www.soinside.com 2019 - 2024. All rights reserved.