LoginSignup
0
0

More than 3 years have passed since last update.

M1 Mac、pod 'FirebaseUI/Storage'やpod 'SDWebImageSwiftUI'でエラーが出るときの対処法

Posted at

M1 Macでpod 'FirebaseUI/Storage'をPodfileに追加してpod installした時、エラーに遭遇したので対処法を共有します。

対処法

対処法は単純、多分、ユニバーサルバイナリ使ってIntelアーキテクチャで実行ってこと

arch -x86_64 pod install

何かと便利そうなので、すぐ使えるようにaliasを切っておきます。M1 Macだとデフォルトがzshなのでルートディレクトリの.zshrcを編集、なかったら作成します。

~/.zshrc
alias intel="arch -x86_64"

以下で読み込み。

source ~/.zshrc

こうすれば、これだけでOK。


intel pod install 

お疲れ様でした!

0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0