Pod install 不会安装 Pod

pos*_*sha 2 iphone ios cocoapods

运行 pod install 时遇到问题。

这是我的 pod 文件的样子:

platform :ios, '8.0'

target 'Template1' do


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

end
Run Code Online (Sandbox Code Playgroud)

但它不会安装豆荚,一旦我执行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.
Run Code Online (Sandbox Code Playgroud)

我不确定出了什么问题。

KSR*_*KSR 6

  1. 从项目目录中删除“Pods”目录(如果存在)

  2. 在终端中, $open -a xcode Podfile

  3. 使用这个:(Podfile)

    平台:ios,'8.0'

    目标 'Template1' 做

    pod“PinterestSDK”

    结尾

  4. 在终端中, $ cd YOUR_PROJECT_PATH

  5. 吊舱安装