Y-Smirnov opened a new issue, #1595:
URL: https://github.com/apache/cordova-ios/issues/1595

   ## Description
   
   Currently, when a plugin declares support for both Swift Package Manager 
(SPM) and CocoaPods, the app (using cordova-ios v8) installs both dependency 
types. This results in build errors such as "_multiple commands produce..._" 
because the same frameworks are included twice (via pods and spm).
   
   ##  Expected / Desired Behavior
   
   Ideally, a plugin should be able to declare support for both SPM and 
CocoaPods, while the app resolves only one based on the cordova-ios in use. 
   
   For example:
   - Newer cordova-ios versions use SPM (when provided by plugin, cocoapods 
otherwise)
   - Older versions keep using CocoaPods
   
   This would allow plugins to adopt SPM while still maintaining backward 
compatibility.
   
   ## Question
   Is this the intended behavior, apps using cordova-ios@8 resolve both SPM and 
pods when a plugin provides both?
   
   If so, what is the recommended approach for a plugin to support both 
dependency managers without causing duplicate framework inclusion?
   
   
   


-- 
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