简体   繁体   English

Google Map ios SDK无法在设备中使用,但可以在模拟器中使用

[英]Google Map ios sdk does not work in device, but work in simulator

I am using google ios sdk v1.2.2. 我正在使用google ios sdk v1.2.2。 I have created a very basic code to show google map view, which works fine in simulator both on iPhone and iPad. 我创建了一个非常基本的代码来显示Google地图视图,该代码在iPhone和iPad上的模拟器中都可以正常工作。 But when I try to run the same code in device (iPad 2, iOS 6.0). 但是,当我尝试在设备(iPad 2,iOS 6.0)中运行相同的代码时。 I get the following error. 我收到以下错误。

'GMSException', reason: 'Google Maps SDK for iOS requires GoogleMaps.bundle to be part of your target under 'Copy Bundle Resources “ GMSException”,原因:“ iOS版Google Maps SDK要求GoogleMaps.bundle成为您的目标的一部分,位于“复制捆绑资源”下

I checked on internet and others post on stack overflow. 我检查了互联网,而其他人则在堆栈溢出时发帖。 It recommends to put GoogleMaps.Bundle from resources folder to your project folder, I have already did that, what else I can do to fix that error. 建议将GoogleMaps.Bundle从资源文件夹放入您的项目文件夹,我已经这样做了,我还能做些什么来解决该错误。

It sounds like you haven't added the bundle to the framework list. 听起来您还没有将捆绑软件添加到框架列表中。

Select the target and go to Build Phases, then in 'Link Binary with Libraries', hit '+' then Add Other. 选择目标并转到Build Phases,然后在“ Link Binary with Libraries”中,单击“ +”,然后单击Add Other。 Select the bundle in the file browser and then retry. 在文件浏览器中选择捆绑软件,然后重试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Google ios SDK-映射在模拟器中起作用,但在设备中不起作用-ClientParametersRequest失败,请求超时错误 - Google ios sdk - maps work in simulator but not in device - ClientParametersRequest failed with request timed out error Xamarin.ios 不适用于真正的 iOS 设备,但它适用于模拟器 - Xamarin.ios does NOT work on real iOS device but it works on Simulator Facebook unity3d SDK 6.0在iOS模拟器中不起作用 - Facebook unity3d sdk 6.0 does not work in ios simulator UIContentSizeCategoryDidChangeNotification不适用于模拟器iOS 9.3,可在设备上运行 - UIContentSizeCategoryDidChangeNotification not working on simulator iOS 9.3, does work on device Firebase 在 ios 模拟器上运行良好,但在真实设备上不起作用 - Firebase works fine on ios simulator but it does't work on real device iOS框架在模拟器上不起作用 - iOS framework does not work on simulator (iOS Swift)某些功能只能在模拟器上使用,而不能在设备上使用 - (iOS Swift) Some features work on simulator but not on device 设备不起作用,模拟器起作用 - Device doesn't work, simulator does 音频播放器可以在后台的iOS模拟器上运行,但不能在iOS设备上使用(相同版本) - Audio player work on iOS simulator in Background but does not on iOS device (same version) NSThread在模拟器上工作,但不在设备上工作 - NSThread work on simulator but not on device
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM