问题描述
当我为 iOS 构建 GoogleMaps SDK 时,发生了这些错误.
When I build a GoogleMaps SDK for iOS,these error occurred.
*** Terminating app due to uncaught exception 'GMSException', reason: 'Google Maps SDK for iOS requires GoogleMaps.bundle to be part of your target under 'Copy Bundle Resources''
但是,GoogleMaps.framework 在副本包资源中.所以,我很困惑.请告诉我这个问题的原因.
but,GoogleMaps.framework is in copy bundle resources.so,I'm confused.please tell me cause of this problem.
推荐答案
说明有点缺乏.我希望这会有所帮助...
The instructions are kinda lacking. I hope this helps...
- 启动 Xcode(简单)
将 GoogleMaps.framework 包拖到框架中你的项目组.出现提示时,选择将项目复制到目标组的文件夹.
- Launch Xcode (easy)
Drag the GoogleMaps.framework bundle to the Frameworksgroup of your project. When prompted, select Copy items intodestination group's folder.
右键单击您项目中的 GoogleMaps.framework,然后选择 Show In发现者.它没有说的是...然后进入名为 Resources 的子文件夹
Right-click GoogleMaps.framework in your project, and select Show InFinder. What it doesn't say is...Then go into the child folder called Resources
将 GoogleMaps.bundle 从 Resources 文件夹拖到您的项目.我们建议将其放在框架组中.什么时候提示,确保将项目复制到目标组的文件夹中选择.
Drag the GoogleMaps.bundle from the Resources folder to yourproject. We suggest putting it in the Frameworks group. Whenprompted, ensure Copy items into destination group’s folder is notselected.
这篇关于适用于 iOS 的 Google Maps SDK 要求 GoogleMaps.bundle 成为“复制捆绑资源"下的目标的一部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!