id<CBLAuthenticator> auth;
auth = [CBLAuthenticator basicAuthenticatorWithName: username
password: password];On Aug 8, 2014, at 9:15 AM, Arash Ashrafi <arashe...@gmail.com> wrote:The CBLAuthenticator protocol is fine. The CBLAuthenticator class is the problem.
1. id<CBLAuthenticator> auth;
2. auth = [CBLAuthenticator basicAuthenticatorWithName:@"something" password:@"something"];
First line is fine.
Error in second line: ! Use of undeclared identifier 'CBLAuthenticator'
On Aug 11, 2014, at 1:24 AM, Arash Ashrafi <arashe...@gmail.com> wrote:
Error in second line: ! Use of undeclared identifier 'CBLAuthenticator'
1. id<CBLAuthenticator> auth;
2. auth = [CBLAuthenticator basicAuthenticatorWithName:@"something" password:@"something"];
And the strange thing is, the first line (the protocol) is fine and it just does not recognise the second line. And it is despite the fact that both CBLAuthenticator protocol and CBLAuthenticator class are declared in the same header file !
On Aug 13, 2014, at 12:37 AM, Arash Ashrafi <arashe...@gmail.com> wrote:The CBLAuthenticator.h is not included in the list of imported header files in CouchbaseLite.h. That might be the reason for that.