Fastlane Beta:Bundler::GemNotFound:无法在任何来源中找到 CFPropertyList-3.0.0

问题描述 投票:0回答:5

运行 fastlane beta 并收到此错误:

Bundler::GemNotFound: Could not find CFPropertyList-3.0.0 in any of the sources

我尝试通过终端安装 gem,将其添加到我的 gemfile,更新我的 fastlane 版本......没有运气。有什么想法吗?

ios fastlane fastlane-pilot fastlane-gym
5个回答
30
投票

尝试

gem install CFPropertyList

更新“您没有...的写入权限”

sudo gem install CFPropertyList

5
投票

我在 cocoapods 插件上遇到错误:

我尝试手动安装 CFPropetyList-3.0.0 - 没有帮助,我对所有 gem 进行了更新 - 没有帮助。

仅提供帮助:

fastlane install_plugins
命令,它更新了 fastlane 的 cocoapods 插件,现在工作正常。

附注更新到 Mojave 操作系统后开始出现此错误。


4
投票

更新所有宝石: sudo gem update --system

如果这导致您出现一些错误,例如:

ERROR:  While executing gem ... (Errno::EPERM)
            Operation not permitted @ rb_sysopen - 
        /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/gem

尝试运行命令: sudo gem install -n /usr/local/bin cocoapods

这将消除此错误

Could not find CFPropertyList-3.0.0 in any of the sources

如果您在上传移动应用程序时遇到类似

bundle install
的错误,请进入 android/ios 文件夹并运行命令:

bundle install

0
投票

问题出在我的 Ruby 版本上:

  1. 安装rvm(如果没有)
    \curl -sSL https://get.rvm.io | bash
  2. 安装最新的 ruby (3.0.0p0)
    rvm install ruby@latest
    并将其设置为默认值
    rvm use ruby-3.0.0 --default
  3. 安装几次cocoapods
    gem install cocoapods
  4. pod install

0
投票

进入ios文件夹=> cd ios

然后运行 => gem install CFPropertyList

© www.soinside.com 2019 - 2024. All rights reserved.