-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
SPM can't find firebase dependencies #6357
Comments
|
Thanks for the report @StarLard - there were a few issues with the copy/pasted code (like a missing EDITED Changing to "Firebase" should work, I'll see if this is an Xcode specific issue or a SwiftPM issue and go from there. ORIGINAL RESPONSE BELOW, INCORRECT I'm not sure exactly why that's the case though, it looks like that should be the correct default name: https://github.com/apple/swift-package-manager/blob/96b0ff907fdd4d91fcd207f4c49aae4fce1d9ec5/Sources/PackageModel/Package.swift#L140-L161 Regardless, a workaround for now is to add Funnily enough, even explicitly adding |
|
Follow up: It looks like this is working as intended based on this package resolution code: (shout out to Swift Package Manager for being open source). I'm going to post on the forums asking about this because it's unclear to me what this means if you have two different dependencies that offer the same package name. Need to do a bit more reading on SE-0226, then after I get that posted, I'll close this issue since we have the right method. |
|
Thanks for the quick reply Ryan! I'll give that a try. UpdateAdding |
Shows example of firebase/firebase-ios-sdk#6357
|
Finally added a note to the Swift forums with a repro, showing that it's impossible to have two dependencies with the same package name. https://forums.swift.org/t/cant-consume-two-swift-packages-with-the-same-name/40408. I'll update the instructions for us then close this bug, thanks! |
This is for developers not integrating with Xcode. Fixes #6357
* Update instructions for manual Package manifests. This is for developers not integrating with Xcode. Fixes #6357 * Whitespace removal. * Review feedback
Step 0: Are you in the right place?
file a Github issue.
with the
firebasetag.google group.
of the above categories, reach out to
Firebase Support.
this repository, please delete this section.
[REQUIRED] Step 1: Describe your environment
[REQUIRED] Step 2: Describe the problem
Steps to reproduce:
What happened? How can we make the problem occur?
This could be a description, log/console output, etc.
When attempting to include Firebase SDK as dependency through SPM...
Expected:
Xcode finds and includes the products.
Actual:
Xcode will generate error: "produce dependency 'FirebaseProductNameXYZ' in package 'firebase-ios-sdk' not found" for each product listed in dependencies.
If you have a downloadable sample project that reproduces the bug you're reporting, you will
likely receive a faster response on your issue.
Relevant Code:
The text was updated successfully, but these errors were encountered: