New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[1.6.0.beta.1] No such module "Firebase" in Swift Tests #8033
Comments
Thanks for the report! Yeah a sample app would help here to figure this out. I'll try to use the |
@edenman the sample project is missing |
Commented out that target but Burrito does not use Firebase so build was successful. I will try it in a sample app of mine. |
Can compile both Burrito and BurritoTests target (I copied over all pods from Taco into Burrito targets). I was using master (355bda2) but it only has 3 unrelated changes to 1.6.0.beta.1 so I don't think something has been fixed since then. Would need an updated sample. |
errant .git folder caused |
Definitely can repro. Probably related to new build settings. Tracked for 1.6.0. |
Maybe worth noting: it's only repro-able if you use Firebase in the Taco app. If you remove the import and the call from AppDelegate, the tests work fine. |
Please post the repro steps starting with I see the same build issue in TacoTests with both 1.5.3 and 1.6.0. |
|
With those steps, my 1.6.0 build gets further than the 1.5.3 one. 1.5.3 fails building the Taco target and 1.6.0 successfully builds Taco and fails building TacoTests. |
I'm also seeing something similar on my client's app (sorry but I had to redact the client's name) This is with Xcode 10 & New Build System, but with Xcode 9.4 I'm seeing similar results. The app's Podfile looks like this:
|
Seeing this issue as well with Xcode 9.4 + CP 1.6.0.beta.1 :/ |
I believe I'm seeing a similar issue in CP 1.6.0.beta.1 around running tests with use_frameworks!, though it seems like the tests work correctly using static rather than dynamic frameworks. This also appears to work fine if the test target is a separate top-level target rather than chained inside the main target, but I ran into other issues with that pattern related to name spacing and Swift which means I cannot use that workaround. Also, I had a case where I was able to revert the "Embed Pods Frameworks" build step for the Unit Test target and it worked again, which leads me to believe that there is some bug around linking dependencies into the test targets (but only when they are inside the main target). |
I've encountered the same problem. Looks like a regression of firebase/firebase-ios-sdk#16 I was able run the tests with the following workaround:
|
hm... adding |
Similar to fonkadelic's comment, I had to change all of my umbrella "import Firebase" statements to use the specific framework, e.g. (import FirebaseCore, import FirebaseAuth, import FirebaseRemoteConfig, etc.) |
The location of the Firebase.h and module.modulemap has changed from Firebase 4 to Firebase 5. The workaround would now be:
To make sure to get the location right for the Firebase version do:
|
Confirmed with #8500 that it fixes this issue. |
Thanks buddy it solved my error |
Report
Upgrading CocoaPods to 1.6.0.beta.1 (from 1.5.3) breaks my Swift unit tests with a "No such module 'Firebase'" error
What did you do?
gem install cocoapods --pre
What did you expect to happen?
Nothing to change except the version# in the Podfile.lock :)
What happened instead?
old, working:
"${SRCROOT}/../Pods/Target Support Files/Pods-Taco/Pods-Taco-frameworks.sh",
new, busted:
"${PODS_ROOT}/Target Support Files/Pods-Taco/Pods-Taco-frameworks.sh",
(I have no idea why this matters, those paths map to the same location. maybe it's a red herring?)
CocoaPods Environment
Stack
Installation Source
Plugins
Podfile
Project that demonstrates the issue
WIP, I'll post a link when it's done
The text was updated successfully, but these errors were encountered: