卸载pod后无法执行pod更新

时间:2018-02-23 13:15:02

标签: swift cocoapods

我在我的项目中添加了firebase crashlytics pod。添加后,我的项目为已安装的第三方库(如Alamofire,Expandablecells等)显示“No Such Module”。

我试图通过设置框架搜索路径,清理派生数据但没有任何效果来解决这个问题。

然后我删除了pod并尝试再次安装它,然后显示。 - 使用$(inherited)标志,或 - 从目标中删除构建设置。

现在我无法更新项目中的任何内容。它再次显示相同的错误。 我重新启动了我的机器。更新到高山脉。 任何人都可以帮我吗?

由于 我检查了这个网址 - Use the `$(inherited)` flag, or - Remove the build settings from the target. CocoaPod Swift3 pod update error

in terminal

在项目中 Poject structure. Pod file screen shot

1 个答案:

答案 0 :(得分:0)

您正在使用引用Ruby 2.0的cocoapods版本 - pod脚本的第一行是

#!/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby

AFAIK这个版本的红宝石已不再存在于High Sierra。

运行sudo gem install cocoapods,此后此行应为

#!/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/bin/ruby