本文介绍了GoogleMaps(GMSView)不会在iOS中显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我加入了以下内容:


  1. 试图导入 GoogleMaps / GoogleMaps.h 以及 GoogleMapsM4B / GoogleMaps.h 文件通过 Obj-C 桥接头

  2. 在我的 AppDelegate.swift(didFinishLaunchingWithOptions)方法中手动输入iOS API密钥。

  3. 清理
  4. 关闭/重新启动Xcode

  5. 卸载/重新安装Xcode



  6. 几乎所有其他人都建议的。我花了两天的时间试图解决这个问题。有没有人知道这个问题的解决方案?



    控制台投诉是:
    $ b


    解决方案

    一样的问题。首先按照以下步骤操作。


    1. 完成链接之后是你吗?

    2. 无法通过,请检查您的Bundle Identifier是否与您用来创建密钥的Bundle Identifier匹配。


    是好的,好的,问题在于框架。最初我也使用了GoogleMapsM4B框架,这对我来说不起作用。我从链接下载了适用于我的其他框架。



    添加新框架( GoogleMaps.framework )并移除 GoogleMapsM4B 来自项目的框架。这解决了我的问题。希望这可以帮助你。



    编辑

    从版本1.10.0开始,只能通过cocoapods支持框架安装。所有的zip下载都被删除了以前的版本。请阅读链接。


    I have incorporated the following:

    1. Tried importing both the GoogleMaps/GoogleMaps.h as well as the GoogleMapsM4B/GoogleMaps.h files through an Obj-C Bridging Header
    2. Manually typed out the iOS API key in my AppDelegate.swift (didFinishLaunchingWithOptions) method.
    3. Cleaned the project (command+shift+k)
    4. Closed/relaunched Xcode
    5. Uninstalled/reinstalled Xcode

    And pretty much everything else other people have suggested. I have spent two days straight trying to fix this problem. Does anyone know a solution to this problem?

    The console complaint is:

    解决方案

    I too faced the same problem. First of all follow the steps below.

    1. Have all the steps mentioned in this link been followed by you?

    2. Though you are unable to get through, check your Bundle Identifier is matching with the one you used to create the key.

    If everything is well and good, the problem is with the framework. Initially I too used the GoogleMapsM4B framework which didn't work for me. I downloaded the other framework which works fine for me from this link.

    Add the new framework (GoogleMaps.framework) and remove the GoogleMapsM4B framework from the project. This solved my problem. Hope this helps you.

    EDIT:

    From version 1.10.0 onwards, the framework installation is supported only via cocoapods. And all zip downloads were removed for previous versions. Read "Migration from 1.9.2 or earlier:" section under "Version 1.10.0 - May 2015" in this link.

    这篇关于GoogleMaps(GMSView)不会在iOS中显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

    1403页,肝出来的..

09-06 07:40