0

我正在按照此url中的说明安装适用于 iOS 的 Google Maps SDK。

pod update使用 1.1.1 版运行时出现错误。

[!] The 'Pods-[Target Name]' target has frameworks with conflicting names: googlemapsbase.framework and googleplaces.framework.

有没有人解决这个问题?

编辑:

这是我正在使用的 Podfile。

platform :ios, '10.0'
source 'https://github.com/CocoaPods/Specs.git'

target 'Woof' do
  use_frameworks!

  pod 'Alamofire'
  pod 'FBSDKLoginKit'
  pod 'TextAttributes', '~> 1.0'
  pod 'Moya'
  pod 'Moya-ObjectMapper', '2.3.1'
  pod 'ObjectMapper', '2.2.6'
  pod 'KeychainSwift', '~> 8.0'
  pod 'DateTools'
  pod 'SnapKit', '~> 3.2'
  pod 'IQKeyboardManagerSwift', '~> 4.0'
  pod 'Stripe', '10.2.0'
  pod 'SVProgressHUD', '~> 2.1' #might change
  pod 'QuickBlox'
  pod 'SDWebImage'
  pod 'Cosmos'
  pod 'JTAppleCalendar', '~> 7.0.2'
  pod 'JSQMessagesViewController'
  pod 'ImageSlideshow'
  pod 'ImageSlideshow/SDWebImage'
  pod 'Eureka'
  pod 'ImageRow'
  pod 'SuggestionRow'
  pod 'GooglePlacesRow'
  pod 'FacebookCore'
  pod 'FacebookLogin'
  pod 'BSImagePicker'
  pod 'OnboardingKit'
  pod 'DZNSegmentedControl'
  pod 'ReadMoreTextView'
  pod 'DZNEmptyDataSet'
  pod 'Fabric'
  pod 'Crashlytics'
  pod 'MGSwipeTableCell'
  pod 'KMPlaceholderTextView', '~> 1.3.0'
  pod 'TTRangeSlider'
  pod 'Firebase/Core'
  pod 'GoogleMaps'
  pod 'GooglePlaces'

  target 'WoofTests' do
    inherit! :search_paths
  end

  target 'WoofUITests' do
    inherit! :search_paths
  end

end

编辑2:

图书馆似乎GooglePlacesRow已经在导入 Google Maps 和 Google Places。删除最后两行即可解决此问题:

pod 'GoogleMaps'
pod 'GooglePlaces'
4

1 回答 1

0

(截至 2017 年 7 月 23 日)我认为这可能是由于 GooglePlacesRow 具有 GooglePlaces 2.0.1 作为依赖项,但当前版本(您也包括)是 2.3.1。我会尝试pod 'GooglePlaces'从您的 podfile 中删除该行。它仍应作为 GooglePlacesRow 的依赖项安装。

于 2017-07-13T20:17:34.817 回答