【发布时间】:2016-12-20 23:05:35
【问题描述】:
我的项目目前使用 xcode 8/swift 3 和 alamofire 4.0 构建。
我的podfile如下:
# 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 一起使用。我在这里做错了吗?有没有其他人有同样的问题/找到了解决方法?
【问题讨论】: