Kodeco Forums

Core Location Tutorial for iOS: Tracking Visited Locations

In this Core Location tutorial, you will learn how to use visit monitoring to track a user's visited locations.


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/5247-core-location-tutorial-for-ios-tracking-visited-locations

FYI The project is set to iOS 12.0 so we have to change it to 11.4 to run it on simulators - at least those of us running release software :wink:

Oh! The app delegate didFinishLaunchingWithOptions needs to be rolled back to something like this

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey : Any]? = nil) -> Bool {
    let rayWenderlichColor = UIColor(red: 0/255, green: 104/255, blue: 55/255, alpha: 1)
    UITabBar.appearance().tintColor = rayWenderlichColor
    return true
}

@trevor Thank you for sharing the code snippet - much appreciated!

1 Like

Hi,

I am in Xcode 11 and keep getting this error when I try to build my project

Value of type ā€˜LocationsStorageā€™ has no member ā€˜saveCLLocationToDiskā€™

I am getting the same error in MapViewController, LocationsStorage and AppDelegate.swift

Any help or suggestions will be appreciated.

Hey @karanpal13 !

I have just tried building both starter and finished projects using Xcode 11.2.1, both built successfully. Could you describe in more details the issue that you are facing?

Hey sir,

Sorry for the late reply - I have been traveling and was in an area with limited internet connectivity.

Please see the file in my Github below. Each time I run the app, I am getting the error
Value of type ā€˜LocationsStorageā€™ has no member ā€˜saveCLLocationToDiskā€™

Please let me know where I am wrong in this.

In your github repo, I see that you have just the project file. I cannot run this without rest of the files. Please zip and upload the whole project folder. You can also check if you can run it yourself after you download your project from github.

Update it and let me know.

This tutorial is more than six months old so questions are no longer supported at the moment for it. Thank you!