简体   繁体   中英

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 . 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. 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. 在此处输入图片说明

If you are using Cocoapods v0.39 you need to define a target for your pods

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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