-
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
Depending on both Firebase/Firestore
and SVGKit
pods in the same app leads to a build error.
#4035
Comments
What is the error? Please share the created project. |
This is error info.
@paulb777 thx your reply. |
i uploading this test project. |
Thank you for the report. I will try to reproduce the issue right now using the project you provided and will post back the results. |
Quick update: |
See #4035: a certain combination of pods can lead to a broken build. The underlying issue is that CocoaPods generate a header map that includes headers from _all_ the pods in a project. A header map maps short file names to full paths and is unable to handle collisions; thus, in a CocoaPods-based build, if one pod contains a header with a common name, and the other pod tries to import a header with the same short name by relying on header maps (without specifying a longer path), the header from one pod may end up getting erroneously picked up by the other pod. In that particular case, `SVGKit` is relying on header maps and trying to import `Document.h`, which, for reasons described above, happens to pick up `document.h` from Firestore. However, since header maps cannot handle collisions in general, this could manifest with other pods as well. The workaround is to avoid adding Firestore header files (except the public ones) to sources. See facebook/react-native#14326, which describes the same problem. Fixes #4035.
@LipYoung #4054 is a workaround for the issue; it will be a part of the next release, but if you'd like to try it out sooner, you can use the commit with the workaround in your
(notice no slash in P.S. Thanks a lot for the repro project! It certainly helped us track down the issue much faster. |
Firebase/Firestore
and SVGKit
pods in the same app leads to a build error.
@var-const thx. This it help for me. |
[REQUIRED] Step 3: Describe the problem
If I add the
Firestore
edit to the newly created project, an error will occur. If you remove theFirestore
edit, it will be fine.如果我在新创建的工程中添加
Firestore
编辑就会出现错误。如果移除Firestore
编辑就正常了。Steps to reproduce:
1 use xcode 11.0(11A420a) create new ios project.
2 use podfile.
3 run pod install.
4 run command + b.
Relevant Code:
podfile content:
The text was updated successfully, but these errors were encountered: