Defined a protocol in a Framework, but its not accessible from the different project

40 Views Asked by At

I have created a protocol inside a framework, Following is my code for Framework.

public protocol CodairaProtocols{
    
    func onOTPGenerated()
    func onResendOTP()
    func onVerifyOTP()
}

enter image description here

After that i created a new project, and drag, dropped this framework to it.

I can create the instance of CodairaAuth,and use it inside the new project, but when i try to use CodairaProtocols, it says that Cannot find type 'CodairaProtocols' in scope

I tried to clean and rebuild the project, but the issue is still there.

enter image description here

0

There are 0 best solutions below