Saving CLLocation error: Mutating method sent to immutable object
问题 I have read the other related questions, but I am stuck. I am trying to save the last known location into a plist for later use. Here is the error message I am receiving: * Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[__NSCFDictionary setObject:forKey:]: mutating method sent to immutable object' Here is my code: var plist = NSDictionary(contentsOfFile: NSBundle.mainBundle().pathForResource("Config", ofType: "plist")) var dataToStore =