According to this article, I need to specify the module to lookup object type:
'Method' is ambiguous for type lookup in this context, Error in Alamofire
But the below function is call from Apple API. Should I wait until Xcode 8 is out of beta? Or am I missing anything?
'Error' is ambiguous for type lookup in this context
function in AppDelegate.swift

Import section

The Solution is to just type Swift.Error instead of Error.
The issue occurs when one of your modules has its own Error Type...:/
For example:
func application(_ application: UIApplication, didFailToRegisterForRemoteNotificationsWithError error: Swift.Error) {}
I hope this works for you :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With