[英]Cannot install pod using M1 chip
我正在嘗試安裝 pod,但每次我都收到以下錯誤。 我試圖刪除 ruby,安裝 cocoapods 和自制軟件,但仍然存在。
注意:我使用的是 M1 芯片組。
dlopen(/Library/Ruby/Gems/2.6.0/gems/psych-4.0.3/lib/psych.bundle, 0x0009): tried: '/Library/Ruby/Gems/2.6.0/gems/psych-4.0.3/lib/psych.bundle' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/usr/lib/psych.bundle' (no such file) - /Library/Ruby/Gems/2.6.0/gems/psych-4.0.3/lib/psych.bundle (LoadError)
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
然后按照命令
sudo arch -x86_64 gem install ffi
Go 到你的項目路徑這里我們不得不提到架構。
arch -x86_64 pod install
謝謝 RedPanda0147
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.