Runs fine till Line 56 of LoginViewController.swift
Then a Call to Func CompleteLogin() is been made after that App crashes.
Unknown class MapViewController in Interface Builder file.
2016-11-19 15:56:37.696 OnTheMap[1489:18784] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIViewController 0x7fb9a7f29e90> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key mapViewController.
libc++abi.dylib: terminating with uncaught exception of type NSException
Run time error
Error at Line 89 of “Udacity Client Convenience.swift” >> Which
returns back the error to “Login View Controller.swift”
Screenshot :
Console Debug Prints :
In func getUserSessionKey
In func getUserSessionKey after Request has added Header fields
In func getUserSessionKey making task network request
In func getUserSessionKey inside task network request
In func getUserSessionKey after Guard Statements task network request
Error Catched in Parsing Data in JSONSerialization Block
Coudln't Find User Key in get User Session Method