Unable to compile AWS CustomIdentityProvider on xcode 8 beta 6
问题 I am using Amazon Cognito and Facebook login in an ios app. Up until beta 5 this code from this SO thread worked: class CustomIdentityProvider: NSObject, AWSIdentityProviderManager { var tokens: [NSString: NSString]? init(tokens: [NSString: NSString]) { self.tokens = tokens } @objc func logins() -> AWSTask<NSDictionary> { return AWSTask(result: tokens) // Compile error in beta 6 } } In beta 6 I get this compile error: Cannot convert value of type '[NSString:NSString]?' to expected argument