简体   繁体   English

Cocoapods:添加Google Maps iOS SDK时出错

[英]Cocoapods: Error when adding Google Maps iOS SDK

I'm following instructions from this url in order to install Google Maps SDK for iOS. 我正在按照此网址中的说明进行操作,以便安装iOS版Google Maps SDK。

I'm getting an error when running pod update using version 1.1.1. 使用版本1.1.1运行pod update时出现错误。

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

Has anyone got around this issue? 有没有人解决这个问题?

EDIT: 编辑:

Here's the Podfile I'm using. 这是我正在使用的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

EDIT 2: 编辑2:

It seems the GooglePlacesRow library is already importing Google Maps and Google Places. 看来GooglePlacesRow库已经在导入Google Maps和Google Places。 This issue gets solved deleting last two lines: 通过删除最后两行可以解决此问题:

pod 'GoogleMaps'
pod 'GooglePlaces'

(As of 2017/07/23) I think this might be caused by the fact that GooglePlacesRow has GooglePlaces 2.0.1 as a dependency but the current version (that you're also including) is 2.3.1. (截至2017年7月23日)我认为这可能是由于GooglePlacesRow具有GooglePlaces 2.0.1作为依赖项,而当前版本(您也包括在内)是2.3.1。 I would try removing the pod 'GooglePlaces' line from your podfile. 我会尝试从您的podfile中删除pod'GooglePlaces pod 'GooglePlaces'行。 It should still get installed as a dependency of GooglePlacesRow. 它仍应作为GooglePlacesRow的依赖项进行安装。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM