macOS Big sur pod install失败

2021-08-09  本文已影响0人  KingWorld

macOS Big sur系统上运行pod install命令行报错:


image.png
See Crash Report log file under the one of following:                    
     * ~/Library/Logs/DiagnosticReports                                     
     * /Library/Logs/DiagnosticReports                                      
   for more details.

-- Crash Report log information --------------------------------------------

See Crash Report log file under the one of following:

 * ~/Library/Logs/DiagnosticReports                                     

 * /Library/Logs/DiagnosticReports                                      

for more details.

Don't forget to include the above Crash Report log file in bug reports.

经过搜索多种方案,最终找到以下解决办法:

命令行中执行以下命令行即可

sudo arch -x86_64 gem install ffi
arch -x86_64 pod install

原因可能是Ruby的FFI库是一个gem,用于以编程方式加载动态链接的本地库,在其中绑定函数,并从 Ruby 代码调用这些函数。(原文:Ruby-FFI is a gem for programmatically loading dynamically-linked native libraries, binding functions within them, and calling those functions from Ruby code.)
————————————————

转载:macOS Big sur pod install失败

上一篇 下一篇

猜你喜欢

热点阅读