没有这样的模块'GoogleMaps'发现它已安装 [英] No such module 'GoogleMaps' found however it is installed

查看:182
本文介绍了没有这样的模块'GoogleMaps'发现它已安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用cocoa pod安装了'GoogleMaps'窗格,项目正在正确构建,但是当我通过iCloud将项目转移到另一台设备时(项目目录位于iCloud中),GoogleMaps窗格停止工作。我试图简单地再次运行pod安装,但这没什么区别,pod显然在那里,pod安装成功。我很困惑。

I have installed the 'GoogleMaps' pod using cocoa pods and the project was building correctly, however when I transferred my project to another device through iCloud (the projects directory is in iCloud) the GoogleMaps pod stopped working. I attempted to simply run pod install again however this mad no difference, the pod is clearly there and the pod install was successful. I am beyond confused.

推荐答案

首先尝试清理项目

Command + Shift + Options + K

Command + Shift + Options + K

如果我没弄错,GoogleMaps框架是从Objective-C构建的,所以如果仍有问题,请执行以下步骤:

If I'm not mistaken, GoogleMaps framework is built from Objective-C so if there's still a problem then do the following steps:


  1. 创建一个桥接头文件,您可以通过在Swift项目中创建一个虚拟的Objective-C类来自动触发和设置它。然后Xcode会询问您是否要创建桥接头,单击是。删除您之后创建的虚拟类。

  2. 配置标题搜索路径以指定具有递归的Pod

  1. Create a bridging header file which you can trigger and setup automatically by creating a dummy Objective-C class in your Swift project. Xcode will then ask you if you would want to create a bridging header, click yes. Delete the dummy class you created after.
  2. Configure the header search path to point the Pods with recursion

做一个干净的构建。

这篇关于没有这样的模块'GoogleMaps'发现它已安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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