According to this article , I need to specify the module to lookup object type , but below function is call from apple api , should I need to wait until Xcode8 really release ? or am I miss anything ?
function in AppDelegate.swift
According to this article , I need to specify the module to lookup object type , but below function is call from apple api , should I need to wait until Xcode8 really release ? or am I miss anything ?
function in AppDelegate.swift
The type
Error
is declared in two imported modules. You have to specify the module from which to use the type. UseSwift.Method
instead ofMethod
.Tip: If you are using the type often, you can create a type alias in your module (application):
That way you will not need to prefix the type with
Swift.
any more.The Solution is to just type
Swift.Error
instead ofError
.The issue occurs when one of your modules has its own Error Type...:/
For example:
I hope this works for you :)