You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am also facing this issue while implementing integration tests. Any ideas on how to resolve this?
classAuthenticationextendsChangeNotifier {
Authentication({bool? useMockUser}) {
if (useMockUser !=null&& useMockUser) {
_auth =MockFirebaseAuth(
signedIn:true,
);
} else {
_auth =FirebaseAuth.instance;
}
}
latefinalFirebaseAuth _auth;
Stream<dynamic> get user => _auth.authStateChanges();
...
}
Running Xcode build...
Xcode build done. 48.6s
Failed to build iOS app
Error (Xcode): ../../.pub-cache/hosted/pub.dev/firebase_auth_mocks-0.9.2/lib/src/mock_user.dart:92:23: Error: The argument type'Map<String, Object>' can't be assigned to the parameter type 'PigeonIdTokenResult'.Could not build the application for the simulator.TestDeviceException(Unable to start the app on the device.)package:flutter_tools/src/test/integration_test_device.dart 63:7 IntegrationTestTestDevice.start
I wanted to create some widget and integration tests, which are basing on idTokenChanges method. Could you add it to MockFirebaseAuth?
The text was updated successfully, but these errors were encountered: