热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

IOS11GoogleMaps在设备上崩溃(iphone5s)-IOS11GoogleMapscrashondevice(iphone5s)

Xcode8.3.2iphone5sios11GoogleMaps2.4Xcode8.3.2iphone5sios11GoogleMaps2.4Igettinge

Xcode 8.3.2 iphone 5s ios 11 GoogleMaps 2.4

Xcode 8.3.2 iphone 5s ios 11 GoogleMaps 2.4

I getting error and crash in viewContoller

我在viewContoller中遇到错误和崩溃

@IBOutlet weak var mapView: GMSMapView! 
override func viewDidLoad() { }

Logs:

日志:

CoreData: annotation:  Failed to load optimized model at path '/var/containers/Bundle/Application/2D2D05FB-A524-4594-B222-69B58E038E9A/Medico.app/GoogleMaps.bundle/GMSCacheStorage.momd/Storage.omo'
CoreData: annotation:  Failed to load optimized model at path '/var/containers/Bundle/Application/2D2D05FB-A524-4594-B222-69B58E038E9A/Medico.app/GoogleMaps.bundle/GMSCacheStorage.momd/Storage.omo'
CoreData: annotation:  Failed to load optimized model at path '/var/containers/Bundle/Application/2D2D05FB-A524-4594-B222-69B58E038E9A/Medico.app/GoogleMaps.bundle/GMSCacheStorage.momd/Storage.omo'
2017-09-21 16:02:08.805064+0300 Medico[2552:187180] [Common] _BSMachError: port 1187f; (os/kern) invalid capability (0x14) "Unable to insert COPY_SEND"

It happens only in IOS 11

它只发生在IOS 11中

6 个解决方案

#1


1  

https://stackoverflow.com/a/46391213/4831936

https://stackoverflow.com/a/46391213/4831936

downgrade your version to 2.2 you will still see warnings but no crash

将您的版本降级到2.2,您仍会看到警告,但没有崩溃

#2


0  

I was facing same issue before some days, actually this issue is related to xcode and/or debuger.

在某些日子之前我遇到了同样的问题,实际上这个问题与xcode和/或debuger有关。

The workaround for this issue is as below:

此问题的解决方法如下:

  • From the Menu in xcode, go to Product > Scheme > Edit Scheme..
  • 从xcode的菜单中,转到产品>方案>编辑方案..
  • Select "Run" tab and then select "Options" sub-tab.
  • 选择“运行”选项卡,然后选择“选项”子选项卡。
  • Change "GPU Frame Capture" from "Automatically Enabled" or "OpenGL ES" to either "Metal" or "Disabled".
  • 将“GPU Frame Capture”从“Automatically Enabled”或“OpenGL ES”更改为“Metal”或“Disabled”。

Thats it!!

而已!!

#3


0  

Upgrade your Xcode and Google maps SDK .it worked for me .

升级您的Xcode和Google地图SDK。这对我有用。

#4


0  

No need to upgrade Xcode. Just upgrade Google SDK. Had same problem. That helped me.

无需升级Xcode。只需升级Google SDK即可。有同样的问题。这帮助了我。

#5


0  

Upgrade to Google Maps SDK 2.5.0 and compile with Xcode 9.It will fix the issue.

升级到Google Maps SDK 2.5.0并使用Xcode 9编译。它将解决此问题。

https://developers.google.com/places/ios-api/releases

https://developers.google.com/places/ios-api/releases

Check 2.5.0 release notes.

检查2.5.0发行说明。

#6


0  

It happens because you are only updating your sdk. Your pod repo is not updated.

之所以会发生这种情况,是因为您只是更新了自己的SD您的pod repo未更新。

So first step is to update your pods by following command:

所以第一步是通过以下命令更新您的pod:

pod repo update

pod repo更新

After that run:

之后运行:

pod update

pod更新

Once it is done install the pods again. Make sure your GoogleMap version should be 2.5.0. It should work!!

完成后再次安装pod。确保您的GoogleMap版本应为2.5.0。它应该工作!!


推荐阅读
author-avatar
徐曼曼_
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有