Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

location get_once returns [CLLocationManager copyWithZone:]: unrecognized selector sent to instance #487

Open
jelmerderonde opened this issue May 22, 2016 · 0 comments

Comments

@jelmerderonde
Copy link

The following code returns [CLLocationManager copyWithZone:]: unrecognized selector sent to instance:

include BW::Location

def get_location
  if BW::Location.enabled? && BW::Location.authorized?
    BW::Location.get_once(desired_accuracy: :nearest_ten_meters) do |user_location|
      if user_location.is_a?(CLLocation)
        mp user_location.coordinate.latitude
      else
        NSLog("Error getting location: %@", user_location[:error])
      end
    end
  end
end

I have messing around with it all day but can't get it fixed. Could it be a bug in BW::Location?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant