I have an app that uses App Services Authentication service, and Sign In with Apple.
When testing on my device, it logs in as expected. When I try to login with the Simulator, login fails with a JSON parsing error. Stepping trough the code, I found that the response body in realm-core/src/realm/object-store/sync/app.cpp:607
prints as a HTML page when logging in trough the Simulator.
(lldb) po response.body
"<!DOCTYPE html>\n<html>\n <head>\n <title>App Services</title>\n....
On my device, response.body
is a JSON object as expected.
What’s going on with this? It reproduces every time after re-install, product clean, depenency updates, and using emailPassword auth.