Module 'google maps' not found after adding another dependency on Xcode

情到浓时终转凉″ 提交于 2019-12-24 16:34:03

问题


I have been working with googles map SDK and I haven't had any problems until I added another dependency in my podfile. I get this error in Xcode saying, "Module 'Google Maps' not found" where I have '@import GoogleMaps'. If I take out the new pod the error goes away and everything works fine. I just recently started using cocoaPods, Is there something I'm missing in my podfile?

platform :ios, '6.1'
pod 'SDWebImage', '~>3.7'

source 'https://github.com/CocoaPods/Specs.git'
pod 'GoogleMaps'

回答1:


You just have to add

 target 'Your Project' do

  pod 'SDWebImage', '~>3.8'

  pod 'GoogleMaps'

  target 'Your ProjectTests' do

    # Pods for testing


  end

The project will run fine now..



来源:https://stackoverflow.com/questions/37580829/module-google-maps-not-found-after-adding-another-dependency-on-xcode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!