realm/RChat

Unable to build due to LoginView.swift

Closed this issue · 1 comments

Hello,

I followed the instructions on the readme and I'm running into a build issue.

let user = try await app.login(credentials: .emailPassword(email: email, password: password))
userID = user.id
state.shouldIndicateActivity = false

Is causing a an error that fails the build
Value of type 'Future<User, Error>' (aka 'Future<RLMUser, Error>') has no member 'id'

I've tried and failed to fix it. Any ideas? I'm new to swift and realm so I'm thinking it might just be a config issue on my end, but I can't find anything.

It also produces a warning:
No calls to throwing functions occur within 'try' expression
But I know this is how the Realm Documentation says to utilize the async login so I'm assuming this is fine.

Well, I seem to have found the solution. I updated from XCode 13.0 to 13.2.1 and now it builds just fine without errors or warnings.