-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Firestore fails to find certificates on macOS #2604
Comments
acknowledged. Early yesterday I would get dialogs about using the keychain with a guidlike thing.firebase etc. |
I've managed to reproduce the issue locally, so for the moment I don't need anything else from you. I can see that the bundle is present as well. However, we're not finding it with the code we have. Under the debugger in
We shouldn't have to reach into the bundle like that though, so I'm investigating. |
Much obliged. Let me know if you need any testing from me, or if you can think of a fix i can shoehorn in. (I'm 3 days late on deliverables and low on coffee!) |
Just a thought, could it have to do with cocoapods and how it links dependencies? |
No the issue is that the code is implicitly making assumptions about bundle structure that hold true on iOS but don't on macOS. You should be able to work around this for the moment by placing a copy of the |
Great minds think alike. I was just coming here to say I had it worked around by doing just that after seeing @"roots.pem" in the array of bundles. I moved the pem out of the bundle to the root of my proj, added it to the target and added it to copy bundle resources. |
The fix has been committed to master and it will go out with our next release. In the meantime you can build against Firestore from master by changing your Podfile as described in our README. |
I upgraded from 5.x to 6.3.0 yesterday and ran into this problem integrating Firestore. I had deleted the previous Resources file from Xcode and then dragged in the new one from 6.3.0 download (not using cocoa pods or carthage). The app failed to build until I dragged in the PEM file and added it to the target manually. Did this regress or is this possible handled better by Cocoapods magic that I've eliminated? |
@leisurehound the |
So, I had copied the Firestore/Resources/gRPCCertificates-Cpp.bundle into my project manually as instructed in the manual instructions in the Readme.md, ensuring it was in my target and copying files.:
But I then got the error here. When I went to the gRPCCertificates-Cpp.bundle file in Finder and 'Show Package Contents,' grab the roots.pem file and drag it into the Xcode project navigator, the workaround listed here, did the project not crash on start. I don't think the extra step of the workaround documented here is the expected behavior. |
The same problem is here. I need to connect to one Firestore from several applications. I have created custom pods with Firestore framework added manually (not via dependencies) and try to connection to the database. Always get assertion error. |
@TheHmmka If you download the zip from https://firebase.google.com/docs/ios/setup#frameworks, the included README has instructions for setting up Firestore manually including including the certificate bundle... The cert loading logic looks in the gRPC-C++ framework bundle, the FirebaseFirestore framework bundle, and the main bundle. The cert bundle has to be in one of those places |
Yes, but when I put frameworks to my private cocoa pod, it doesn't work out of the box. I need to put pem file to the application bundle, instead of using it from builded pod. |
Right, Firebase does not support dynamic linking. |
Pod installing Firestore ends up crashing with this message:
#2241 added code that should have addressed this but it's not working in a clean install.
The text was updated successfully, but these errors were encountered: