Search code examples
iosswiftfirebasegeofire

Type 'GFEventType' has no member 'KeyEntered'


I have a GeoFire query that has been working for quite a while. Suddenly when I go to update my podfile to the new firebase specs, it is now giving be the following error: Type 'GFEventType' has no member 'KeyEntered' on all of my queries that use KeyEntered.

Below is an example of one of the queries I'm running.

circleQuery.observeEventType(.KeyEntered, withBlock: { (key: String!, location: CLLocation!) in

        if key == self.ref.authData.uid{

            print("Found myself! Omitted.")

        }else{

            self.userKeys.append(key)
            self.userLocations.append(location)

            print(self.userKeys)
            print(self.userLocations)

        }

    }) //End userQuery

I'm afraid I've seriously messed up my GeoFire installation, how can I fix it?

Thanks in advance.


Solution

  • Try GFEventTypeKeyEntered. Perhaps for some reason the automatic conversion of the enum failed.