andika_kurniawan
andika_kurniawan

Reputation: 89

iOS - #import "GoogleMaps/GoogleMaps.h" not found

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 ?

Upvotes: 2

Views: 12309

Answers (5)

Mr Random
Mr Random

Reputation: 2218

running pod update and install fixes the issue.

cd ios

pod update

Upvotes: 0

Joshua Hart
Joshua Hart

Reputation: 852

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.

Upvotes: 2

Le Tuan Hiep
Le Tuan Hiep

Reputation: 91

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

Upvotes: 0

Mohammed Raisuddin
Mohammed Raisuddin

Reputation: 992

  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

Upvotes: 0

iSekhar
iSekhar

Reputation: 119

# 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.

Upvotes: -1

Related Questions