I have firebase auth on my app, but I don't understand what the code is doing or why Auth is not popping up.

I've tried resetting SPM, SwiftAuth and Firebase are all downloaded as libraries as well. I'm not sure why it's not reading Auth!!

Hi @colstin, I think the warning you're seeing File 'AuthViewModel.swift' is part of module 'FirebaseAuth'; ignoring import is because your app target's name is FirebaseAuth as well. I believe that, at least by default, this results in a Swift module of the same name (i.e., the import statement is trying to import your app's module -- namespace collision).

I tried making a similarly named project to yours and was able to reproduce the issue. The quickest way I found to resolve it was to change the app target name to anything else, e.g. "FirebaseAuth-foo":

Once that was resolved, the Cannot find 'Auth' in scope error on Auth.auth() went away too. If this doesn't resolve the problem for you, please file an issue on our firebase-ios-sdk GitHub repo.

Hope this helps!

-- Andrew Heard from Firebase

I have firebase auth on my app, but I don't understand what the code is doing or why Auth is not popping up.
 
 
Q