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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to