I got this failure if I have Firebase-iOS-sdk or GoogleSignIn package already added.
If you have those package added, remove them first, FirebaseUI-iOS have them included.