我尝试在运行macOS Ventura(13.0)的 Intel MacBook Pro 上安装CocoaPods以进行 flutter iOS 开发时出错。
有人现在如何解决这个错误问题?
sudo gem install cocoapods
(这是我遇到的错误,是因为我在 macOS 13.0 上运行还是您认为我可以修复它?)
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.15.5/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 ./siteconf20221026-9237-4mv2z6.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 …Run Code Online (Sandbox Code Playgroud)