file not found Google Maps SDK for iOS

后端 未结 10 1871
故里飘歌
故里飘歌 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: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.

提交回复
热议问题