I\'d added CLLocationManager in my app using Swift in the AppDelegate file.
In the Appdelegate.swift file,
import CoreLocation @UIApplicationMain cla
In your simulator, goto Debug->Location->Custom and change location, then test it.