在添加对Xcode的另一个依赖项后找不到'Google地图'模块 [英] Module 'google maps' not found after adding another dependency on Xcode

查看:143
本文介绍了在添加对Xcode的另一个依赖项后找不到'Google地图'模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用Google地图SDK,直到我在我的pod文件中添加了另一个依赖项之前,我一直没有遇到任何问题。我在Xcode中得到这个错误,说:模块'谷歌地图'没有找到'我有'@import GoogleMaps'。如果我拿出新的吊舱,错误消失,一切正常。我刚刚开始使用cocoaPods,在我的podfile中是否有某些东西丢失?

 平台:ios,'6.1'
pod'SDWebImage','〜> 3.7'

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


  target'您的项目'do 

pod'SDWebImage','〜> 3.8'

pod'GoogleMaps'

target'Your ProjectTests'do

#用于测试的货舱


结束

该项目现在运行良好。


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'

解决方案

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..

这篇关于在添加对Xcode的另一个依赖项后找不到'Google地图'模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆