I'm having an issue when running the pod install.
我在运行pod安装时遇到问题。
This is how my pod file looks like:
这是我的pod文件的样子:
platform :ios, '8.0'
target 'Template1' do
pod "PinterestSDK", :git => "https://github.com/pinterest/ios-pdk.git"
end
But it won't install the pods,once i execute pod install , this is the output it gives.
但它不会安装pod,一旦我执行pod安装,这就是它给出的输出。
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.
I'm not sure what's wrong.
我不确定是什么问题。
1 个解决方案
#1
2
-
Delete "Pods" directory from your project directory(if exist)
从项目目录中删除“Pods”目录(如果存在)
-
In terminal, $open -a xcode Podfile
在终端,$ open -a xcode Podfile
-
Use this: (Podfile)
使用此:( Podfile)
platform :ios, '8.0'
平台:ios,'8.0'
target 'Template1' do
目标'Template1'做
pod “PinterestSDK”
pod“PinterestSDK”
end
结束
-
In terminal, $ cd YOUR_PROJECT_PATH
在终端,$ cd YOUR_PROJECT_PATH
-
pod install
pod安装
#1
2
-
Delete "Pods" directory from your project directory(if exist)
从项目目录中删除“Pods”目录(如果存在)
-
In terminal, $open -a xcode Podfile
在终端,$ open -a xcode Podfile
-
Use this: (Podfile)
使用此:( Podfile)
platform :ios, '8.0'
平台:ios,'8.0'
target 'Template1' do
目标'Template1'做
pod “PinterestSDK”
pod“PinterestSDK”
end
结束
-
In terminal, $ cd YOUR_PROJECT_PATH
在终端,$ cd YOUR_PROJECT_PATH
-
pod install
pod安装