Hi!
I was just trying to login using my Realm app.
On my iPhone, and on macOS, it works fine - the login is successful.
The issue is that only on the iOS Simulator, I get:
Task <96D401D2-F4F1-4A11-8D02-1385C4CBD1C1>.<1> finished with error [-1001] Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo={_kCFStreamErrorCodeKey=-2102, NSUnderlyingError=0x6000009eb690 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 "(null)" UserInfo={_kCFStreamErrorCodeKey=-2102, _kCFStreamErrorDomainKey=4}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <96D401D2-F4F1-4A11-8D02-1385C4CBD1C1>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <96D401D2-F4F1-4A11-8D02-1385C4CBD1C1>.<1>"
), NSLocalizedDescription=The request timed out., NSErrorFailingURLStringKey=https://realm.mongodb.com/api/client/v2.0/app/_my_id_here_/location, NSErrorFailingURLKey=https://realm.mongodb.com/api/client/v2.0/app/_my_id_here_/location, _kCFStreamErrorDomainKey=4}
Code:
let realmApp = RealmSwift.App(id: "_my_id_here_")
realmApp.login(credentials: .anonymous) { result in
switch result {
case .success(let user):
// physical iOS device & macOS go here
case .failure(let error):
// iOS Simulator goes here
}
}
I have restarted the simulator, erased all content & settings etc.
This is with Xcode 12.5 beta 2, using Realm at master
(c5c5e67)
Any ideas why this might happen?
Thanks!