Swift 将Google地图方向API与alamofire 4.0和iOS 10结合使用
我的项目目前是在xcode 8/swift 3和alamofire 4.0中构建的 我的播客文件如下:Swift 将Google地图方向API与alamofire 4.0和iOS 10结合使用,swift,alamofire,ios10,Swift,Alamofire,Ios10,我的项目目前是在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 'G
# 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
需要Podfile.lockAlamofire(=4.2.0)
谷歌地图指南(1.0.4)Alamofire(~>3.0)
Alamofire(~>4.0)、Alamofire(=4.2.0)、Alamofire(~>3.0)
依赖关系的规范,但它们需要更高的最低部署目标
Google Map Directions与以前版本的Alamofire(3.5)配合使用,但我无法让它与4.0配合使用。我做错什么了吗?是否还有其他人有相同的问题/找到了解决方法?已解决: 我已将pod文件中的
GoogleMapDirections版本更改为1.1
,该文件需要最新的Alamofire v4.0
依赖项