扬庆の博客

M1版MacBook Pro配置cocoapods

字数统计: 114阅读时长: 1 min
2021/06/22 Share

M1MacBook Pro cocoapods安装解决?

安装

1
2
1. $ arch -x86_64 sudo gem install cocoapods
2. $ sudo arch -x86_64 gem install ffi
1
2
3
4
5
6
Password:
Building native extensions. This could take a while...
Successfully installed ffi-1.15.3
Parsing documentation for ffi-1.15.3
Done installing documentation for ffi after 3 seconds
1 gem installed

然后执行pod install即可

打印如下:

1
2
3
4
5
6
7
8
9
10
$ pod install
Analyzing dependencies
Downloading dependencies
Installing SnapKit (5.0.1)
Generating Pods project
Integrating client project

[!] Please close any current Xcode sessions and use `TestFirst.xcworkspace` for this project from now on.
Pod installation complete! There is 1 dependency from the Podfile and 1 total pod installed.

下面是贴图

报错

安装

CATALOG
  1. 1. M1MacBook Pro cocoapods安装解决?
  2. 2. 安装