'Swift packages with the same name causing errors
I am trying to import two packages, both called PushNotifications, into Swift Package Manager. I need them both. However as they both have the same name I get the errors:
Multiple products named 'PushNotifications` in: 'push-notifications-server-swift', 'push-notifications-swift'
Multiple targets named 'PushNotifications` in: 'push-notifications-server-swift', 'push-notifications-swift'
Trying to add the other one, even with a different URL, shows the error below and disables the Add Package button.
The project 'my-project' already contains this package dependency.
I have tried importing one with cocoa pods but it doesn't make any difference. I cannot edit the Package.swift files for either of them as they are not my packages and have been directly linked to Xcode via GitHub
These are the packages I have installed
How can I rename or namespace the Swift packages so that I can import both?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

