You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/03/11 07:29:05 UTC

[GitHub] [cordova-ios] msmtamburro opened a new issue #1089: Add Swift Package Manager Support for iOS Plugins

msmtamburro opened a new issue #1089:
URL: https://github.com/apache/cordova-ios/issues/1089


   # Feature Request
   
   With recent versions of Xcode, including frameworks became problematic due to the introduction of the M1 Mac and the inclusion of certain simulator architectures within frameworks.  To address this, framework consumers use Lipo to strip architectures, or (better) framework providers moved to XCFramework.  Other framework providers jumped directly to offering their projects as Swift Packages to overcome this challenge.  It would be nice to add a way for plugins to specify Swift Package Manager dependencies, just like they currently can specify frameworks.
   
   ## Motivation Behind Feature
   <!-- Why should this feature be implemented? What problem does it solve? -->
   
   There are complicated or manually intensive ways to add Swift Packages to a Cordova project, so it would make sense to add real support, as this does appear the direction things are going.
   
   https://swift.org/package-manager/
   https://developer.apple.com/documentation/xcode/adding_package_dependencies_to_your_app
   
   ## Feature Description
   <!-- 
   Describe your feature request in detail
   Please provide any code examples or screenshots of what this feature would look like
   Are there any drawbacks? Will this break anything for existing users? 
   -->
   
   Plugins would be able to add a line something like this:
   
   `<package src="https://github.com/ReactiveX/RxSwift.git" branch="optional" version="6.0.0" revision="3920840923809482309482039"/>`
   
   ## Alternatives or Workarounds
   <!-- 
   Describe alternatives or workarounds you are currently using 
   Are there ways to do this with existing functionality?
   -->
   
   You could write a hook that calls something on the command line to add this, or (worse) manually add the package each time through Xcode.
    
   
   


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

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


[GitHub] [cordova-ios] jpike88 commented on issue #1089: Add Swift Package Manager Support for iOS Plugins

Posted by GitBox <gi...@apache.org>.
jpike88 commented on issue #1089:
URL: https://github.com/apache/cordova-ios/issues/1089#issuecomment-822181972


   Cocoapods needs to be a thing of the past, downloading of the cocopaods repo step is pure lunacy and anything that improves on that is massive step forward.


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

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