这个问题困扰了我一段时间,我不知道该如何解决。我已经设置了与Xcode中完全相同的API密钥允许的iOS应用程序的捆绑包标识符。我试图更改我的捆绑包ID,但仍然没有任何更改。如果我添加了演示应用程序的捆绑软件ID并测试了该演示应用程序,则可以正常运行,但是由于我的应用程序中的某些原因,无论我尝试做什么,它都将失败。我已确保使用以下方式记录捆绑包ID [[NSBundle mainBundle] bundleIdentifier];
,然后将ID复制并粘贴到控制台中,然后将API密钥复制并粘贴到[GMSServices provideAPIKey:@"APIKEYHERE"];
方法中。仍然没有任何效果。我到处都是堆栈溢出和互联网,但找不到任何有帮助的东西。我跟着一步一步的指示按照本文章,但仍然无济于事。当我运行我的应用程序时,得到的只有一个空白屏幕,显示以下控制台日志消息:
2014-05-18 01:43:31.761 MyApp[3249:a0b] Google Maps SDK for iOS version: 1.8.0.8950
2014-05-18 01:43:32.615 MyApp[3249:4803] +[NSData gtm_dataByInflatingData:]: unrecognized selector sent to class 0x391f238
2014-05-18 01:43:32.618 MyApp[3249:a0b] ClientParametersRequest failed, 3 attempts remaining (0 vs 6). Error Domain=com.google.Maps.GMSDASHConnection Code=101 "The operation couldn’t be completed. (com.google.Maps.GMSDASHConnection error 101.)"
2014-05-18 01:43:32.804 MyApp[3249:5b07] +[NSData gtm_dataByInflatingData:]: unrecognized selector sent to class 0x391f238
2014-05-18 01:43:32.804 MyApp[3249:a0b] ClientParametersRequest failed, 2 attempts remaining (0 vs 6). Error Domain=com.google.Maps.GMSDASHConnection Code=101 "The operation couldn’t be completed. (com.google.Maps.GMSDASHConnection error 101.)"
2014-05-18 01:43:36.909 MyApp[3249:5b07] +[NSData gtm_dataByInflatingData:]: unrecognized selector sent to class 0x391f238
2014-05-18 01:43:36.909 MyApp[3249:a0b] ClientParametersRequest failed, 1 attempts remaining (0 vs 6). Error Domain=com.google.Maps.GMSDASHConnection Code=101 "The operation couldn’t be completed. (com.google.Maps.GMSDASHConnection error 101.)"
2014-05-18 01:43:45.020 MyApp[3249:5b07] +[NSData gtm_dataByInflatingData:]: unrecognized selector sent to class 0x391f238
2014-05-18 01:43:45.021 MyApp[3249:a0b] ClientParametersRequest failed, 0 attempts remaining (0 vs 6). Error Domain=com.google.Maps.GMSDASHConnection Code=101 "The operation couldn’t be completed. (com.google.Maps.GMSDASHConnection error 101.)"
2014-05-18 01:43:45.021 MyApp[3249:a0b] Google Maps SDK for iOS cannot connect or validate APIKey: Error Domain=com.google.Maps.GMSDASHConnection Code=101 "The operation couldn’t be completed. (com.google.Maps.GMSDASHConnection error 101.)"
请注意,我收到的错误代码101
没有100
。我在其他类似问题上看到的是100。
似乎错过了一个类别。.确保为您的应用设置了-ObjC链接器标志
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句