Ruby on rails rails c命令失败:您的包被锁定到CFPropertyList(2.3.4)如何解决?

Ruby on rails rails c命令失败:您的包被锁定到CFPropertyList(2.3.4)如何解决?,ruby-on-rails,bundler,Ruby On Rails,Bundler,我正在开发一个应用程序,当我尝试运行rails c时,它会导致以下错误: Your bundle is locked to CFPropertyList (2.3.4), but that version could not be found in any of the sources listed in your Gemfile. If you haven't changed sources, that means the author of CFPropertyList (2.3.4)

我正在开发一个应用程序,当我尝试运行
rails c
时,它会导致以下错误:

Your bundle is locked to CFPropertyList (2.3.4), but that version could not be 
found in any of the sources listed in your Gemfile. If you haven't changed sources, 
that means the author of CFPropertyList (2.3.4) 
has removed it. 
You'll need to update your bundle to a different version of CFPropertyList (2.3.4) 
that hasn't been removed in order to install.
运行
bundle install
安装缺少的gems


我不知道是什么突然导致了这个错误,但这似乎只是在我运行
rails c
时出现的。所有其他rails命令都能正常工作。我已尝试运行
bundle安装
bundle更新
,但错误仍然存在。以前有人遇到过这个错误吗?建议只删除“Gemfile.lock”中有问题的行吗?

删除您的
Gemfile.lock
,然后重新运行
捆绑安装
。它将使用适当的依赖项重建。如果您仍然有问题,那么两个或多个gem之间可能存在版本/依赖关系冲突