You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "GitToTheHub (via GitHub)" <gi...@apache.org> on 2026/02/24 17:09:57 UTC

[I] Swift Package Manager: Conflicting identity for cordova-ios [cordova-ios]

GitToTheHub opened a new issue, #1609:
URL: https://github.com/apache/cordova-ios/issues/1609

   # Bug Report
   
   ## Problem
   
   I added Swift Package Manager support to a plugin and added it to a Hello World project. After opening XCode 26 I get this warning:
   
   > Conflicting identity for cordova-ios: dependency 'github.com/apache/cordova-ios' and dependency '.../maps-test/platforms/ios/packages/cordova-ios' both point to the same package identity 'cordova-ios'. This will be escalated to an error in future versions of SwiftPM.
   
   This is the `Package.swift` of my plugin:
   
   ```swift
   // swift-tools-version:5.7
   
   import PackageDescription
   
   let package = Package(
       name: "cordova-plugin-google-maps-sdk",
       platforms: [.iOS(.v16)],
       products: [
           .library(name: "cordova-plugin-google-maps-sdk", targets: ["cordova-plugin-google-maps-sdk"])
       ],
       dependencies: [
           // This must be included as a dependency, with this format for it to work.
           .package(url: "https://github.com/apache/cordova-ios.git", branch: "master"),
           .package(url: "https://github.com/googlemaps/ios-maps-sdk", from: "10.8.0")
       ],
       targets: [
           .target(
               name: "cordova-plugin-google-maps-sdk",
               dependencies: [
                   .product(name: "Cordova", package: "cordova-ios"),
                   .product(name: "GoogleMaps", package: "ios-maps-sdk")
               ],
               path: "src/ios",
               resources: [],
               publicHeadersPath: "."
           )
       ]
   )
   ```
   ### What is expected to happen?
   
   
   
   ### What does actually happen?
   
   
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   
   
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
   
   
   
   ### Version information
   <!-- 
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [ ] I searched for existing GitHub issues
   - [ ] I updated all Cordova tooling to most recent version
   - [ ] I included all the necessary information above
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Re: [I] Swift Package Manager: Conflicting identity for cordova-ios [cordova-ios]

Posted by "jcesarmobile (via GitHub)" <gi...@apache.org>.
jcesarmobile commented on issue #1609:
URL: https://github.com/apache/cordova-ios/issues/1609#issuecomment-4476617610

   Not sure if it was the case when you reported the issue, but Cordova changes the `.package(url: "https://github.com/apache/cordova-ios.git", branch: "master"),` to `.package(name: "cordova-ios", path: "../cordova-ios"),` in plugin's Package.swift to avoid that problem, can you check if that's working for you on latest release?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Re: [I] Swift Package Manager: Conflicting identity for cordova-ios [cordova-ios]

Posted by "GitToTheHub (via GitHub)" <gi...@apache.org>.
GitToTheHub commented on issue #1609:
URL: https://github.com/apache/cordova-ios/issues/1609#issuecomment-4476738724

   I had only the issue when I tried a local cordova-ios. When I use cordova-ios from GitHub I don't have this issue. So this issue is obsolete I think or not relevant.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Re: [I] Swift Package Manager: Conflicting identity for cordova-ios [cordova-ios]

Posted by "GitToTheHub (via GitHub)" <gi...@apache.org>.
GitToTheHub closed issue #1609: Swift Package Manager: Conflicting identity for cordova-ios
URL: https://github.com/apache/cordova-ios/issues/1609


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org