-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Swift unit tests fail to find Firebase module #16
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
Comments
It looks like |
In the meantime for people seeing this issue, adding Still investigating. |
Workaround:
The root cause has to do with our internal build system and I'll track the progress at #58. |
As per #58 this issue is resolved with CocoaPods 1.4.0 |
I've had this problem and I found by running sudo gem update in terminal and then adding pod 'Firebase' to the podfile, I was bale to solve it. Hope this turns out the same for you. Good luck! |
Actually never mind the problem is back. Are you using Xcode 10? |
I have the same error. I fixed using |
How do I do that? |
Some possible workarounds:
If someone shares a reproducible example, I'll take a deeper look. |
@paulb777 Thanks for the reply. For some strange reason, using |
Sorry I’m really new to this. Could you tell me like a step by step like what things to press and where to type in Xcode for the ${PODS_ROOT} things? Your help is greatly appreciated. |
It's one of the fields in the Build Settings tab of your xcodeproj file. |
This is still happening. Confirmed with CocoaPods |
Being the top search result probably makes this the best place to ask, eventhough the issue is closed. |
Same here, issue still happening on CocoaPods |
yes we should reopen this issue, still happens |
I had to use this temporary solution https://stackoverflow.com/a/40524145/7767664 to fix it |
This comment has been minimized.
This comment has been minimized.
@echamussy this is a separate issue from the parent issue. The above issue is resolved with just fixing the header search paths; yours is one where you're missing symbols at link time. Please file a new issue and share a project that reproduces your error. |
This comment has been minimized.
This comment has been minimized.
@morganchen12 For me it is still not clear how this could be fixed. Could you please explain how header search paths should be fixed. I tried several suggestion, but they were not helping. |
I just wanna figure out whose bug it is, firebase? or cocoapods? |
I tested the reproducible test case above with Xcode 10.1 and CocoaPods 1.7.5 and it successfully finds the Firebase module. We'll need an example that is reproducible with current tools to make more progress. |
Wait so was there a fix? Still happening for me as well. |
@ikeller96 There was a CocoaPods fix in 1.6.0. If it's still happening for you, we need a repro to investigate. |
@paulb777 I am on CocoaPods version 1.5.3. I'll try updating and see if that works. |
So @paulb777 I have CocoaPods v 1.6.0 now but I am getting the same error in a different test. |
Have you tried deleting derived data since installing a new version of CocoaPods? |
@morganchen12 Yes. Just tried that and I'm still getting the same error. |
Can you share your project? |
@morganchen12 This problem was occurring for me during an attempt at a swift 5 migration. Our company has decided to rebuild the app and therefore there will be no more releases so we are no longer going to try the swift 5 migration. Thank you for your help though. |
Reposting an above reply from anonym24 for the weary traveler: |
[REQUIRED] Step 2: Describe your environment
[REQUIRED] Step 3: Describe the problem
Steps to reproduce:
Unit tests for Swift projects that import Firebase fail to build
Details in http://stackoverflow.com/questions/38216090/xcode-unit-testing-with-cocoapods/39602648
Reproducible test case at https://github.com/marcelofabri/BrokenFirebase
The text was updated successfully, but these errors were encountered: