'pod install' 没有将框架添加到我的 Xcode 项目中

'pod install' isn't adding the framework to my Xcode project

我想构建 运行 这个项目。

https://github.com/JakeLin/SwiftWeather

我 'git clone' 然后 'cd' 到它的目录,然后 运行 'pod install',它安装所有的 pod 没有错误。

在我的项目文件夹中,我可以看到 pod,当我打开 .xcworkspace 时它也会出现。但是,当我打开我的 .xcodeproject 时,它会在 'import ...' 语句中抛出一个错误,我在其中尝试导入 pod。

我该如何解决这个问题?

PS:当我打开我的 .xcworkspace 时,我可以看到并打开 Pods 项目中的所有内容,但我只能看到实际项目而不能打开它。

非常感谢。 :-)

please go through Cocoapods install it may helpful for you

使用 .xcworkspace 而不是 .xcodeproject。您需要工作空间来支持 cocoa pod。