ios - Pod install 不会安装 pod

标签 ios iphone cocoapods

运行 pod install 时遇到问题。

这是我的 pod 文件的样子:

platform :ios, '8.0'

target 'Template1' do


pod "PinterestSDK", :git => "https://github.com/pinterest/ios-pdk.git"

end

但它不会安装 pod,一旦我执行 pod install ,这就是它给出的输出。
Analyzing dependencies
Downloading dependencies
Generating Pods project
Integrating client project

[!] Please close any current Xcode sessions and use `Template1.xcworkspace` for this project from now on.
Sending stats
Pod installation complete! There are 0 dependencies from the Podfile and 0 total
pods installed.

[!] The Podfile does not contain any dependencies.

我不确定出了什么问题。

最佳答案

  • 从项目目录中删除“Pods”目录(如果存在)
  • 在终端中, $open -a xcode Podfile
  • 使用这个:(Podfile)

    平台:ios,'8.0'

    目标“模板1”做

    pods “PinterestSDK”

    结束
  • 在终端中, $ cd YOUR_PROJECT_PATH
  • pods 安装
  • 关于ios - Pod install 不会安装 pod,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39547467/

    相关文章:

    ios - 我如何在 zendrive iOS 中测试事故检测

    ios - AVCaptureSession 输出未正确显示且未调用 AVCaptureMetadataOutputObjectsDelegate 方法

    ios - 是通过编程方式将设备iPhone或iPad

    iphone - UIColor 到无符号整数

    ios - 无法运行 'Pod Setup'

    ios - Crashlytics(3.10.3,CocoaPods)提交段错误: 11

    ios - ld : Framework not found

    iOS 和管理器 : Can't read dowloaded file

    ios - UIPIckerView 未显示在所需位置

    iphone - 以编程方式滚动具有加速和减速功能的 UITableView