运行 fastlane beta 并收到此错误:
Bundler::GemNotFound: Could not find CFPropertyList-3.0.0 in any of the sources
我尝试通过终端安装 gem,将其添加到我的 gemfile,更新我的 fastlane 版本......没有运气。有什么想法吗?
尝试
gem install CFPropertyList
更新“您没有...的写入权限”
sudo gem install CFPropertyList
更新所有宝石: 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
问题出在我的 Ruby 版本上:
\curl -sSL https://get.rvm.io | bash
rvm install ruby@latest
并将其设置为默认值 rvm use ruby-3.0.0 --default
gem install cocoapods
pod install
进入ios文件夹=> cd ios
然后运行 => gem install CFPropertyList