0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

CocoaPodsで"pod install"した時にエラーが出たら(M1 Mac環境)

Last updated at Posted at 2021-11-14

概要

CocoaPodsによるライブラリのインストール

$ pod install

M1 Mac環境でやるとエラーが出てしまいます。
色々解決の仕方があるようですが、シンプルに解決できた方法を共有します:grinning:

※ なお、Terminalからコマンドを実行します。
内容が理解できて、ご自身の環境に合っている場合だけお試しください:bangbang:

本文

まずはffiをインストールしておく

$ sudo arch -x86_64 gem install ffi

ライブラリをインストールする時はこのコマンド

$ arch -x86_64 pod install

ライブラリを更新する時はこのコマンド

$ arch -x86_64 pod update

補足

このstackoverflowを参考にしました。

0
0
0

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?