快车道Beta: Bundler :: GemNotFound:在任何来源中都找不到CFPropertyList-3.0.0。

10
运行 fastlane beta 时遇到以下错误:
Bundler::GemNotFound: Could not find CFPropertyList-3.0.0 in any of the sources

我尝试通过终端安装gem、将其添加到我的gemfile中、更新快车版本...但都没有成功。有什么建议吗?


一样的情况。不知道怎么解决,即使更新存储库也没有帮助。 - Jürgen 'Kashban' Wahlmann
4个回答

30

尝试

gem install CFPropertyList

更新:“您没有该文件的写入权限...”

sudo gem install CFPropertyList

2
虽然这段代码可能提供了问题的解决方案,但最好添加上它是如何工作的背景和原因。这有助于未来用户学习并最终将该知识应用到他们自己的代码中。当代码得到解释时,您还很可能获得其他用户的积极反馈/点赞。 - Amit Verma
谢谢。我会尝试解释。 - Ten

5
我在CocoaPods插件上遇到了错误:

enter image description here

我尝试手动安装CFPropetyList-3.0.0,但没有帮助。我更新了所有的gem,也没有帮助。
只有fastlane install_plugins命令有所帮助,它更新了fastlane的cocoapods插件,现在可以正常工作了。
P.S.这个错误是在升级到Mojave操作系统后出现的。

4

更新所有的 gem 包:

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

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接