2

I'm sorry, I'm newbie in iOS development. I use library from here to get direction of two place in Google Maps. I have ever used Google Maps. After I import Google Maps Framework, I still get error...

This is the problem : enter image description here

How to import get GoogleMaps header ?

Community
  • 1
  • 1
andika_kurniawan
  • 89
  • 1
  • 2
  • 13

5 Answers5

2

This could be an issue of you not copying the frameworks to the project folder, and then after adding the GoogleMaps framework maybe you moved the framework file on your computer to a new location?

Try deleting the framework from your project and then adding the framework again by going to your Project's Build Setting --> Build Phases and dragging the framework into that window.

Also, perform a Project Clean, and make sure that if you have an iOS Simulator running (in any project) to stop it and close it.

Sometimes this causes Xcode to freeze the update process within the coding.

Jake
  • 1,906
  • 9
  • 32
  • 60
Joshua Hart
  • 772
  • 1
  • 21
  • 31
0
  1. Download the updated Googlemaps sdk for iOS and search something like GoogleMaps.Framework in the downloaded zip file
  2. Drag the GoogleMaps.Framework into your project
Md Rais
  • 972
  • 1
  • 12
  • 21
0

Removing and adding Google Map SDK again works for me :)

Le Tuan Hiep
  • 91
  • 1
  • 3
0

running pod update and install fixes the issue.

cd ios

pod update
Mr Random
  • 1,992
  • 7
  • 20
-1
# import "GoogleMapsM4B/GoogleMaps.h"

It reads first framework name GoogleMapsM4B and the then a class GoogleMaps.h now googlemaps.h consists of all class . then u van access the all class like GMSMapview etc.

iSekhar
  • 119
  • 1
  • 8