Pod文件未显示在Xcode上

时间:2017-11-17 03:59:03

标签: xcode cocoapods

任何人的pod文件都没有显示在他们的pod文件中?

以下是我的项目播放包的外观

enter image description here

以下是他们过去的看法:
  enter image description here

我已经运行了'pod install',它说所有内容都已下载,所以我有点不知所措。我得到的错误是错误:没有这样的模块“翠鸟”

编辑:

好的,所以这种转向另一个问题。我有.xcproject而不是.xcworkspace。但我以为我倒退了,因为当我打开我的工作区时它看起来像这样,我无法打开任何东西。

enter image description here

1 个答案:

答案 0 :(得分:0)

就我而言

pod init

并且Podfile已创建(可以从终端和finder看到),但未显示在当前打开的Xcode项目上。

因此,然后我从终端用nano编辑了Podfile,以安装所需的特定pod。然后我做了:

pod install

我收到此消息:

[!] Please close any current Xcode sessions and use `FoodTracker.xcworkspace` for this project from now on.
Pod installation complete! There is 1 dependency from the Podfile and 5 total pods installed.

关闭当前项目,然后使用新的.xcworskpace重新打开即可解决问题。

相关问题