小编Max*_*hez的帖子

安装 CocoaPods 时出错 - macOS BigSur

我正在学习如何编程,我正在尝试安装 Cocoapods,但是我在sudo gem install cocoapods.

这就是我得到的:

    Building native extensions. This could take a while...
ERROR:  Error installing cocoapods:
    ERROR: Failed to build gem native extension.

    current directory: /Library/Ruby/Gems/2.6.0/gems/ffi-1.13.1/ext/ffi_c
/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby -I /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0 -r ./siteconf20201006-615-fryp4a.rb extconf.rb
checking for ffi.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog …
Run Code Online (Sandbox Code Playgroud)

macos xcode rubygems libffi cocoapods

9
推荐指数
5
解决办法
1万
查看次数

标签 统计

cocoapods ×1

libffi ×1

macos ×1

rubygems ×1

xcode ×1