我的项目目前是在 xcode 8/swift 3 和 alamofire 4.0 中构建的。
我的播客文件如下:
# Uncomment the next line to define a global platform for your project
platform :ios, '10.0'
use_frameworks!
target 'CustomerApp' do
# Pods for CustomerApp
pod 'SwiftyJSON'
pod 'GoogleMaps'
pod 'GooglePlaces'
pod 'GoogleMapsDirections', '~>1.0.4'
pod 'Alamofire', '~>4.0'
end
我在尝试安装 googleMapDirection pod 时在终端中收到以下错误:
]无法满足以下要求:
Alamofire (~> 4.0)
Podfile
需要Alamofire (= 4.2.0)
Podfile.lock
需要Alamofire (~> 3.0)
GoogleMapsDirections (1.0.4)
需要
找到了满足 Alamofire (~> 4.0)、Alamofire (= 4.2.0)、Alamofire (~> 3.0)
依赖项的规范,但它们需要更高的最低部署目标。
Google Map Directions 适用于以前版本的 Alamofire (3.5),但我无法使用 4.0。我在这里做错了什么吗?还有其他人遇到同样的问题/找到解决办法了吗?
最佳答案
关于swift - 在 alamofire 4.0 和 iOS 10 Swift 中使用 Google Map Directions API,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41244771/