【无标题】

MacBook M1更新cocoapods

  1. 更换了新电脑M1 Macbook Pro

  2. 使用pod install时报错:Ignoring ffi-1.15.5 because its extensions are not built. Try: gem pristine ffi --version 1.15.5

  3. 更新:sudo gem update --system

  4. 卸载原来的版本: gem uninstall cocoapods

  5. 安装新版本:gem install cocoapods --user-install

  6. 如果未使用 参数 --user-install 会提示:ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/gems/2.6.0 directory.

  7. 更新:sudo gem pristine ffi --version 1.15.5

你可能感兴趣的:(ios)