Weird Swift 3 issue with latest Amazon AWS Mobile sample code
问题 Following along the current sample code for aws.amazon.com/mobile/ there are a number of code items they have not updated really well to Swift 3 (which is pretty bizarre considering their resources). When you come to AWSMobileClient.swift there's a line of code like this: if (!isInitialized) { AWSIdentityManager.defaultIdentityManager().resumeSession(completionHandler: {(result: AnyObject?, error: NSError?) -> Void in print("Result: \(result) \n Error:\(error)") } as! (Any?, Error?) -> Void)