我的项目目前使用Xcode 8和Swift 3使用Alamofire 4.0。我使用CocoaPods来实现Alamofire。使用Google Places API与Alamofire 4.0和iOS 10和Swift 3
我podfile如下:
# Uncomment the next line to define a global platform for your project
platform :ios, '10.0'
use_frameworks!
target 'WTB’ do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
pod 'Alamofire', :git => 'https://github.com/Alamofire/Alamofire.git', :tag => ’4.0.0’
pod 'SwiftyJSON', git: 'https://github.com/BaiduHiDeviOS/SwiftyJSON.git', branch: 'swift3'
pod 'GooglePlaces' #doesn't work when this line is added
pod 'ChameleonFramework'
end
尝试安装googlePlaces荚,当我在终端以下错误:
- `Alamofire (from `https://github.com/Alamofire/Alamofire.git`, tag `4.0.0`)` required by `Podfile`
- `Alamofire (= 4.0.0)` required by `Podfile.lock`
- `Alamofire (~> 3.0)` required by `GooglePlaces (1.0.1)`
谷歌的地方工作与Alamofire以前的版本(3.4 .0)但我无法使用4.0.0 + .Am我在这里做错了什么?是否有其他人有相同的问题/找到解决办法?
更新: 我也还算干净荚后没有运气安装
Matthews-MBP:WTB matthewwyeth$ rm -Rf Pods; pod install
Analyzing dependencies
Pre-downloading: `Alamofire` from `https://github.com/Alamofire/Alamofire.git`, tag `4.0.0`
Pre-downloading: `SwiftyJSON` from `https://github.com/BaiduHiDeviOS/SwiftyJSON.git`, commit `de5dc3b1b421805769590d331178551bbb0e5733`
[!] Unable to satisfy the following requirements:
- `Alamofire (from `https://github.com/Alamofire/Alamofire.git`, tag `4.0.0`)` required by `Podfile`
- `Alamofire (= 4.0.0)` required by `Podfile.lock`
- `Alamofire (~> 3.0)` required by `GooglePlaces (1.0.1)`
[!] Your Podfile has had smart quotes sanitised. To avoid issues in the future, you should not use TextEdit for editing it. If you are not using TextEdit, you should turn off smart quotes in your editor of choice.
我没有看到复制你的podfile进入一个新的项目相同的结果,并GooglePlaces 2.1.0被安全地安装。也许尝试一个干净的荚安装? 'rm -Rf Pods;荚安装' – emb
没有工作。我刚刚创建了一个新项目并尝试相同,但仍然得到相同的错误。它可以是我的cocoapods版本吗?即时通讯运行cocoapods 1.1.1在埃尔卡皮坦10.11.5 –
很奇怪。我有一个非常类似的设置与cocoapods 1.1.1和埃尔卡皮坦10.11.6。你可能会在rm -Rf Pods之后将所有的cocoapods打印到终端上;吊舱安装“?很想看看它在行为不当之前得到了多少。 – emb