Yes for plugins we have to use plugman. Why Carthage and not CocoaPods?
Firstly I like that Carthage is not opinionated like CocoaPods -- you have to have a Podfile, podspec, etc, and it creates a workspace that you *have* to use. I was working on the goal for users to "easily add Cordova to an existing project" -- thus Carthage wins hands down (it builds the framework, you add it in, you're done). Granted, Carthage is for iOS 8+ only but that is our deployment target anyway. CocoaPods is pretty heavy and I didn't like the hundreds of megabytes (half gig?) you need to download before you can use it -- and I feel that Carthage is the way of the future anyway (although CocoaPods is great for discovery I suppose). Not to mention potential CocoaPods Ruby/Gems/dependency hell. I realize that if users need plugins they will have to install CocoaPods anyway if the plugins require CocoaPods (but that is outside the scope of embedding Cordova). I don't want users to go through that hell pre-emptively just to embed Cordova. Note that we *can* use Cordova as a CocoaPod already (not directly from Apache): http://docs.phonegap.com/tutorials/develop/1-embed-webview/ios/ On Thu, Mar 23, 2017 at 4:29 PM, julio cesar sanchez <jcesarmob...@gmail.com > wrote: > No objection, but why Carthage and not CocoaPods? > > For the plugins we have to use plugman, right? > > 2017-03-23 22:07 GMT+01:00 Shazron <shaz...@apache.org>: > > > I'm going to leave this open for the rest of this week, and if no > concerns > > I will take that as lazy consensus and file an issue for changing this. > > > > On Tue, Mar 21, 2017 at 2:41 PM, Shazron <shaz...@apache.org> wrote: > > > > > ## DESCRIPTION > > > > > > Carthage is supported for embedding Cordova into existing iOS projects > > now > > > (in cordova-ios@4.4.0, the next release): > > > https://issues.apache.org/jira/browse/CB-12050 > > > > > > The Docs to update are here: > > > http://cordova.apache.org/docs/en/6.x/guide/platforms/ios/webview.html > > > > > > Doc issue: > > > https://issues.apache.org/jira/browse/CB-12514 > > > > > > ## CARTHAGE > > > > > > Carthage is: > > > https://github.com/Carthage/Carthage > > > > > > In your existing project, you create a Cartfile. In it, you point it to > > > the Git repo for cordova-ios (among other dependencies). It will then > > > download the repo and build Cordova.framework in your project in a > > > subfolder. You would then add Cordova.framework into your project. Then > > in > > > your code you can do this: > > > > > > @import Cordova; > > > > > > CDVViewController* cdv = [CDVViewController new]; > > > > > > ### PROPOSAL > > > > > > Update the docs to use Carthage, replacing the existing multitude of > > > steps. Note that Carthage, like the docs before it, does not solve the > > "How > > > do I add plugins?" problem, it is a replacement for the existing > method. > > > > > >