malcommac / SwiftLocation

⚓️ Async/Await CLLocationManager Wrapper for Apple Platforms
MIT License
3.37k stars 430 forks source link

[Bug]: Always getting timeout #387

Open that70schris opened 4 weeks ago

that70schris commented 4 weeks ago

Platform Version

macOS

SDK Version

6.0.0

Xcode Version

NA

Steps To Reproduce

I'm trying to use this in a Raycast extension https://github.com/that70schris/weather/tree/minimum

  1. install Raycast
  2. run npm install
  3. run npm run dev
  4. Raycast should pop up
  5. run the available "Weather" menubar command in Raycast

file to focus on is https://github.com/that70schris/weather/blob/minimum/Sources/weather.swift

Expected Behavior


    .horizontal(10000) // has an horizontal accuracy of 100 meters or lower
  ], timeout: 10)```
should return a location

### Actual Incorrect Behavior

I'm getting a timeout error despite `location.locationServicesEnabled` being `true`
that70schris commented 4 weeks ago

Raycast documentation: https://developers.raycast.com