We had the same issue and it turned out someone had added a capacitor plugin for firebase. Not exactly sure which one, I think "FirebaseAuthentication". This plugin was not used when we built it for web and android which is why it worked, but for some reason it picked it up during the ios build and it broke the app.