malcommac / SwiftLocation

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

Switch must be exhaustive in Frequency.swift class #247

Closed bhanushalilinesh closed 5 years ago

bhanushalilinesh commented 5 years ago

After installing the pods getting the below error in following files

Switch must be exhaustive in Frequency.swift class

`import Foundation import MapKit import CoreLocation

// MARK: - Extension to CLActivityType

extension CLActivityType: CustomStringConvertible {

public var description: String {
    switch self {
    case .automotiveNavigation: return "Automotive Navigation"
    case .fitness:              return "Fitness"
    case .other:                return "Other"
    case .otherNavigation:      return "Navigation"
    }
}

}`

and Missing argument for parameter #1 in call in LocationTracker.swift file

`//MARK: CLLocationManager Region Monitoring Delegate

public func locationManager(_ manager: CLLocationManager, didStartMonitoringFor region: CLRegion) {
    let region = self.regionRequests.filter { $0.region == region }.first
    region?.onStartMonitoring?()
}`
T-Coded commented 5 years ago

Running into the same problem

Edit: @bhanushalilinesh I updated the pod to the latest release and it's building fine for me now

malcommac commented 5 years ago

Fixed in 4.x