I have a red alert error 'value of type 'Realm.Configuration 'has no member 'path'.

I have not yet run the project as I'm building it, copying files and settings exactly from another project which has realm running fine.
Any ideas?

The error is on the line 
 print(Realm.Configuration.defaultConfiguration.path!)

it is on my MapViewController (a long swift file with a lot of code so I'm not sure which part to copy here. The top of the file has 'import RealmSwift', which is in my pod file.

the code block is

```
override func viewDidLoad() {
    super.viewDidLoad()

    title = "Map"

    locationManager.delegate = self

    if CLLocationManager.authorizationStatus() == .NotDetermined {
        locationManager.requestWhenInUseAuthorization()
    } else {
        locationManager.startUpdatingLocation()
    }

    print(Realm.Configuration.defaultConfiguration.path!)
    populateMap()

}

```