简体   繁体   English

CocoaPods Pod安装奇怪的行为

[英]CocoaPods Pod install weird behavior

I am currently trying to install these Pods in my Xcode project but am getting the following screen when I try pod install . 我目前正在尝试在我的Xcode项目中安装这些Pods,但是在尝试pod install时出现以下屏幕。 I have been getting this message in xCode when trying to run my project so I thought I would just try and re-install pods. 尝试运行我的项目时,我一直在xCode中收到此消息,所以我认为我将尝试重新安装Pod。 But get the error below. 但是得到下面的错误。

在此处输入图片说明

platform :ios, ‘8.0’
use_frameworks!

source 'https://github.com/CocoaPods/Specs.git'

platform :ios, '8.1'
pod 'SwiftyJSON', :git => 'https://github.com/SwiftyJSON/SwiftyJSON.git'
pod 'Alamofire', '~> 3.0'
pod 'GooglePlacesAutocomplete'
pod 'Spring', :git => 'https://github.com/MengTo/Spring.git', :branch => 'swift2'
pod 'DropDown'
pod 'AlamofireImage', '~> 2.0'

When I run pod install I get the following message on screen in the terminal. 当我运行pod install我会在终端屏幕上看到以下消息。 在此处输入图片说明

If you are using Cocoapods v0.39 you need to define a target for your pods 如果您使用的是Cocoapods v0.39,则需要为吊舱定义一个目标

target :'nameOfTheScheme' do
  pod 'SwiftyJSON', :git => 'https://github.com/SwiftyJSON/SwiftyJSON.git'
  pod 'Alamofire', '~> 3.0'
  pod 'GooglePlacesAutocomplete'
  pod 'Spring', :git => 'https://github.com/MengTo/Spring.git', :branch => 'swift2'
  pod 'DropDown'
  pod 'AlamofireImage', '~> 2.0'
end

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM