file not found Google Maps SDK for iOS

后端 未结 10 1840
故里飘歌
故里飘歌 2020-12-06 19:04

Yesterday I recived an email from google saying that I could acces to the map api for ios, I generated my key from the app console and I follow the steps of https://develope

相关标签:
10条回答
  • 2020-12-06 19:24

    the GoogleMaps framework is probably not in the Library folder but in the same directory like all other project files. I this case you have to write #import "GoogleMaps/GoogleMaps.h or #import "GoogleMaps.h"

    0 讨论(0)
  • 2020-12-06 19:30

    Finally I have found the solution for my problem:

    1 Extract the subfolder A in version and I renamed it to GoogleMaps.framework

    2 Copy this folder to your project folder.

    enter image description here

    3 Add it to your Frameworks group in the project

    enter image description here

    4 Import to AppDelegate as #import "GoogleMaps/GoogleMaps.h"

    I will edit with images for people that have the same trouble.

    Thanks for all the people that helped me.

    0 讨论(0)
  • 2020-12-06 19:30

    Try this:

    Drag the GoogleMaps.framework bundle to the Frameworks group of your project. When prompted, select Copy items into destination group's folder.

    You have to copy the unzipped folder "GoogleMaps.framework" into XCode.

    Then follow steps 3 & 4

    3.Right-click GoogleMaps.framework in your project, and select Show In Finder.

    4.Drag the GoogleMaps.bundle from the Resources folder to your project. We suggest putting it in the Frameworks group. When prompted, ensure Copy items into destination group's folder is not selected.

    If still not working try adding manually GoogleMaps.framework in the Build Phases tab->Link Binary with Libraries

    0 讨论(0)
  • 2020-12-06 19:34

    Maybe you've forgot after change Podfile, you have to run

    pod update

    then rerun react-native run-ios

    0 讨论(0)
  • 2020-12-06 19:35

    Here's the first few steps you need:

    • Download GoogleMaps-iOS-1.1.0.zip from their site
    • Unzip the file. You now have a GoogleMaps-iOS-1.1.0 folder
    • In that folder you have a GoogleMaps.framework folder.
    • Copy or move the GoogleMaps.framework folder to inside your project folder (in Finder).
    • Drag the GoogleMaps.framework folder onto your Frameworks group in Xcode.
    • In the options sheet, uncheck "Copy items into destination group's folder". Make sure your target is checked in "Add to targets". Click OK.
    • (Note that you can also do this the other way, by not copying it into your project folder and checking "Copy items into destination group's folder". Xcode will copy the folder itself.)

    • Import using #import "GoogleMaps/GoogleMaps.h". The angle bracket usually work too, but in this case it should use quotes.

    You should end up with a golden toolbox icon:

    enter image description here

    Using an #import with angle brackets should search the system frameworks, then inside your project folder, but to be safe try it with quotes.

    0 讨论(0)
  • 2020-12-06 19:35

    I've been struggling with this issue for hours; I'm using CocoaPods, Swift and Xcode 6.1.1. I followed all the steps for including GoogleMaps in my project carefully, tried many different things like removing symbolic links in the downloaded package or manually linking the binaries in build phases or trying #include "GoogleMaps.h", #include "GoogleMaps/GoogleMaps.h" and "#include <GoogleMaps/GoogleMaps.h> in my bridge file, none of that worked... Finally used CocoaPods instead of including the framework myself and it worked! Hope it helps someone out there:

    In the Podfile:

    pod 'Google-Maps-iOS-SDK', '~> 1.9.2'

    And in your Bridge file:

    #import "GoogleMaps.h"

    0 讨论(0)
提交回复
热议问题