gpt4 book ai didi

ios - Pod Install : Ignoring ffi-1. 13.1 因为它的扩展没有被构建。试试 : gem pristine ffi --version 1. 13.1

转载 作者:行者123 更新时间:2023-12-04 15:10:08 26 4
gpt4 key购买 nike

我试过运行 pod install在我的 Xcode 项目中,但出现以下错误

    /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/dependency.rb:311:in `to_specs': Could not find 'ffi' (>= 1.3.0) among 84 total gem(s) (Gem::MissingSpecError)
Checked in 'GEM_PATH=/Users/dylan/.gem/ruby/2.6.0:/Library/Ruby/Gems/2.6.0:/System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/gems/2.6.0', execute `gem env` for more information
当我跑 gem env , 我有
    RubyGems Environment:
- RUBYGEMS VERSION: 3.0.3
- RUBY VERSION: 2.6.3 (2019-04-16 patchlevel 62) [universal.x86_64-darwin20]
- INSTALLATION DIRECTORY: /Library/Ruby/Gems/2.6.0
- USER INSTALLATION DIRECTORY: /Users/dylan/.gem/ruby/2.6.0
- RUBY EXECUTABLE: /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
- GIT EXECUTABLE: /usr/bin/git
- EXECUTABLE DIRECTORY: /usr/local/bin
- SPEC CACHE DIRECTORY: /Users/dylan/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /Library/Ruby/Site
- RUBYGEMS PLATFORMS:
- ruby
- universal-darwin-20
- GEM PATHS:
- /Library/Ruby/Gems/2.6.0
- /Users/dylan/.gem/ruby/2.6.0
- /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/gems/2.6.0
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- https://rubygems.org/
- SHELL PATH:
- /usr/local/bin
- /usr/bin
- /bin
- /usr/sbin
- /sbin
- /Library/Apple/usr/bin
之前一切正常,我最近做的一件事是将 Xcode 更新到 12.3 和 Big Sur。不确定其他人都有这个问题。

最佳答案

更新到 Big Sur 后遇到同样的问题
重新安装 cocoapods 对我有用

gem install cocoapods
如果出现以下错误,
您可能需要为 ruby​​ 开发安装单独的包
环境,例如 ruby​​-dev 或 ruby​​-devel。
安装这个
xcode-select --install

关于ios - Pod Install : Ignoring ffi-1. 13.1 因为它的扩展没有被构建。试试 : gem pristine ffi --version 1. 13.1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65364001/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com