4

Error use unresolved identifier GMSPlacePickerConfig & GooglePlacePicker? (Google Places 2.0)

import GoogleMaps
import GooglePlaces

are already declared on top.

Here

Thiha Aung
  • 5,036
  • 8
  • 36
  • 79
aposnov
  • 71
  • 6

2 Answers2

4

Now, google has broken it into multiple frameworks. You need to add a new pod 'GooglePlacePicker'.

Harish J
  • 525
  • 1
  • 4
  • 16
2

I don't see any error on your code based on this sample code. If you are using cocoapod, you need to add pod 'GooglePlaces'. Error Use of unresolved identifier usually occurs when your new class has a different Target(s) from the other one. You can check it in this SO question. It might have a testing target and the other doesn't. You have to include all of your classes in the testing target or none of them. Also, here is a related answer in SO question which might help.

Community
  • 1
  • 1
abielita
  • 13,147
  • 2
  • 17
  • 59
  • my error after migration to google places 2.0, old code dont work :( In 2.0 it dont see GMSPlacePickerConfig & GooglePlacePicker, In 1 version Google maps, all work good. – aposnov Sep 08 '16 at 17:46