As you can see I am getting the following message after importing the app into the test file.
What I have done to solve: I have made sure that I do not have any dependencies on my test target.
My understanding is that I should not need to import dependencies on my test target files. Even when I import the dependencies I get the same error.
2
Answers
I was finally able to figure it out thanks to answer to the same problem on the following link: https://github.com/firebase/firebase-ios-sdk/issues/10049
Thank you Jon for guiding me to the right solution. I am now able to import FirebaseAuth into the test Swift file.
Dependency declarations aren’t transitive. When you import your production code, that doesn’t also import the libraries your code depends on. So when your test code has any references to those libraries, they also must be imported. And from my experience, the libraries must also be linked into your test bundle.