我在为我的项目安装 pod 时遇到错误。
/Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:85:in `require': dlopen(/Library/Ruby/Gems/2.6.0/gems/bigdecimal-3.1.4/lib/bigdecimal.bundle, 0x0009): tried: '/Library/Ruby/Gems/2.6.0/gems/bigdecimal-3.1.4/lib/bigdecimal.bundle' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Library/Ruby/Gems/2.6.0/gems/bigdecimal-3.1.4/lib/bigdecimal.bundle' (no such file), '/Library/Ruby/Gems/2.6.0/gems/bigdecimal-3.1.4/lib/bigdecimal.bundle' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')) - /Library/Ruby/Gems/2.6.0/gems/bigdecimal-3.1.4/lib/bigdecimal.bundle (LoadError)
from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:85:in `require'
from /Library/Ruby/Gems/2.6.0/gems/bigdecimal-3.1.4/lib/bigdecimal.rb:4:in `<top (required)>'
from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:85:in `require'
from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:85:in `require'
from /Library/Ruby/Gems/2.6.0/gems/activesupport-6.1.7.2/lib/active_support/xml_mini.rb:5:in `<top (required)>'
from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:85:in `require'
from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:85:in `require'
from /Library/Ruby/Gems/2.6.0/gems/activesupport-6.1.7.2/lib/active_support/core_ext/array/conversions.rb:3:in `<top (required)>'
from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:85:in `require'
from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:85:in `require'
from /Library/Ruby/Gems/2.6.0/gems/activesupport-6.1.7.2/lib/active_support/core_ext/array.rb:5:in `<top (required)>'
from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:85:in `require'
from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:85:in `require'
from /Library/Ruby/Gems/2.6.0/gems/activesupport-6.1.7.2/lib/active_support/core_ext.rb:4:in `block in <top (required)>'
from /Library/Ruby/Gems/2.6.0/gems/activesupport-6.1.7.2/lib/active_support/core_ext.rb:3:in `each'
from /Library/Ruby/Gems/2.6.0/gems/activesupport-6.1.7.2/lib/active_support/core_ext.rb:3:in `<top (required)>'
from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:85:in `require'
from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:85:in `require'
from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods.rb:8:in `<top (required)>'
from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:85:in `require'
from /Library/Ruby/Site/2.6.0/rubygems/core_ext/kernel_require.rb:85:in `require'
from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/bin/pod:36:in `<top (required)>'
from /usr/local/bin/pod:23:in `load'
from /usr/local/bin/pod:23:in `<main>'
我正在我的项目上安装 Pod,但出现上述错误。请帮我解决这个问题。我使用的是 M1 机器,使用 Xcode 版本 15.1。当我使用我的系统 ruby 安装 pod it 时,我已经在其他路径上安装了 renv ruby,但每次都需要系统 ruby。