简体   繁体   English

较旧的iOS版本上的Google Maps SDK

[英]Google Maps SDK on older iOS Versions

I'm very new to maps and I've been following this Google Maps tutorial here . 我是新手,我一直在这里关注此Google Maps教程。

My app is running perfectly on iOS 8 but crashes on older versions. 我的应用程序可以在iOS 8上完美运行,但在旧版本上会崩溃。

I'm pretty sure this problem is with the following line in my Podfile. 我很确定此问题与我的Podfile中的以下行有关。

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.1'  <-- this line
pod 'GoogleMaps'

Is it just a case of changing this platform to 7.0 if I want it to run on older versions of iOS? 如果我希望它在旧版本的iOS上运行,是否只是将其更改为7.0的一种情况?

This will involve me having to remove the SDKs and start from scratch, right? 这将使我不得不删除SDK并从头开始,对吧?

Is there a way to fix this issue, without having to re-install all these SDKs... that was a lot of effort for a newbie like me. 有没有一种方法可以解决此问题,而不必重新安装所有这些SDK……对于像我这样的新手来说,这是很大的努力。

Updating it wont be a huge task. 更新它不会是一项艰巨的任务。 all you have to do is use 7.0 instead of 8.1 OR remove that line altogether... 您所要做的就是使用7.0而不是8.1或完全删除该行...

Save your podfile and just run the following command in your terminal.. 保存您的podfile,然后在终端中运行以下命令。

pod update

And you are done... 你完成了...

All the best. 祝一切顺利。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM