MongoDB.live, free & fully virtual. Register Now MongoDB.live, free & fully virtual. Register Now

Unknown type name 'RLMSyncCredentials'; did you mean 'RLMCredentials'?

#import <Realm/Realm.h>
#import "Log.h"      
RLMSyncCredentials *credential = [RLMSyncCredentials credentialsWithUsername:@"sdf"
                                                                            password:@"fsd@123"
                                                                            register:NO];
[RLMSyncUser logInWithCredentials:credential
                            authServerURL:authURL
                             onCompletion:^(RLMSyncUser *user, NSError *error)

I keep getting /sfsf/fsdfsdfds/rel.m:33:5: Unknown type name ‘RLMSyncCredentials’; did you mean ‘RLMCredentials’?

I have in my pods

pod ‘Realm/Headers’ pod ‘Realm’

I also changed credentialswithusername to credentialswithemail same stuff.

What version of Realm are you using? Can I see a more complete compiler output please?