実現したいこと
LoadErrorを解消したい
発生している問題・分からないこと
cocoapodsのバージョンを確認するため「pod -v」を押したところ下記エラーが表示されました。
cocoapodsを一度アンインストールしようと「sudo gem uninstall cocoapods」というコマンドを試しましたが、同じエラーがでてしまいます。
このエラーを解消するまたは、cocoapodsを強制的にアンインストールする方法はありますか?
下記エラーメッセージは「pod -v」を実行した際に出たエラーです。アンインストールの際も同様のエラーメッセージがでています。
エラーメッセージ
error
1/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require': dlopen(/Library/Ruby/Gems/2.6.0/gems/strscan-3.1.0/lib/strscan.bundle, 0x0009): tried: '/Library/Ruby/Gems/2.6.0/gems/strscan-3.1.0/lib/strscan.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/strscan-3.1.0/lib/strscan.bundle' (no such file), '/Library/Ruby/Gems/2.6.0/gems/strscan-3.1.0/lib/strscan.bundle' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')) - /Library/Ruby/Gems/2.6.0/gems/strscan-3.1.0/lib/strscan.bundle (LoadError) 2 from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require' 3 from /Library/Ruby/Gems/2.6.0/gems/tzinfo-2.0.6/lib/tzinfo/data_sources/posix_time_zone_parser.rb:4:in `<top (required)>' 4 from /Library/Ruby/Gems/2.6.0/gems/tzinfo-2.0.6/lib/tzinfo.rb:48:in `require_relative' 5 from /Library/Ruby/Gems/2.6.0/gems/tzinfo-2.0.6/lib/tzinfo.rb:48:in `<top (required)>' 6 from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require' 7 from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require' 8 from /Library/Ruby/Gems/2.6.0/gems/activesupport-6.1.7.8/lib/active_support/values/time_zone.rb:3:in `<top (required)>' 9 from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require' 10 from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require' 11 from /Library/Ruby/Gems/2.6.0/gems/activesupport-6.1.7.8/lib/active_support/time_with_zone.rb:4:in `<top (required)>' 12 from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require' 13 from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require' 14 from /Library/Ruby/Gems/2.6.0/gems/activesupport-6.1.7.8/lib/active_support/core_ext/time/zones.rb:3:in `<top (required)>' 15 from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require' 16 from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require' 17 from /Library/Ruby/Gems/2.6.0/gems/activesupport-6.1.7.8/lib/active_support/core_ext/date/calculations.rb:7:in `<top (required)>' 18 from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require' 19 from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require' 20 from /Library/Ruby/Gems/2.6.0/gems/activesupport-6.1.7.8/lib/active_support/core_ext/date.rb:5:in `<top (required)>' 21 from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require' 22 from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require' 23 from /Library/Ruby/Gems/2.6.0/gems/activesupport-6.1.7.8/lib/active_support/core_ext.rb:4:in `block in <top (required)>' 24 from /Library/Ruby/Gems/2.6.0/gems/activesupport-6.1.7.8/lib/active_support/core_ext.rb:3:in `each' 25 from /Library/Ruby/Gems/2.6.0/gems/activesupport-6.1.7.8/lib/active_support/core_ext.rb:3:in `<top (required)>' 26 from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require' 27 from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require' 28 from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/lib/cocoapods.rb:8:in `<top (required)>' 29 from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require' 30 from /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require' 31 from /Library/Ruby/Gems/2.6.0/gems/cocoapods-1.15.2/bin/pod:36:in `<top (required)>' 32 from /usr/local/bin/pod:23:in `load' 33 from /usr/local/bin/pod:23:in `<main>'
該当のソースコード
特になし
試したこと・調べたこと
上記の詳細・結果
似たようなエラーが出ている方を見つけられませんでした。
補足
xcode 15.4
Homebrew 4.3.7
rbenv 1.2.0
mac Sonoma 14.4.1
0 コメント