Cocoapods: Error when adding Google Maps iOS SDK

973 views Asked by At

I'm following instructions from this url in order to install Google Maps SDK for iOS.

I'm getting an error when running pod update using version 1.1.1.

[!] 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.

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:

It seems the GooglePlacesRow library is already importing Google Maps and Google Places. This issue gets solved deleting last two lines:

pod 'GoogleMaps'
pod 'GooglePlaces'
1

There are 1 answers

3
Chris Allwein On

(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. I would try removing the pod 'GooglePlaces' line from your podfile. It should still get installed as a dependency of GooglePlacesRow.