【问题标题】:Using Google Map Directions API with alamofire 4.0 and iOS 10 Swift在 alamofire 4.0 和 iOS 10 Swift 中使用 Google Map Directions API
【发布时间】: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 一起使用。我在这里做错了吗?有没有其他人有同样的问题/找到了解决方法?

【问题讨论】:

    标签: swift alamofire ios10


    【解决方案1】:

    已解决:

    我在我的 pod 文件中更改了 GoogleMapDirections to 1.1 的版本,这需要最新的 Alamofire v4.0 依赖项。

    【讨论】:

      猜你喜欢
      • 2017-03-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-04-20
      • 2014-11-29
      • 1970-01-01
      • 2019-01-30
      相关资源
      最近更新 更多