kmp-fatframework-cocoa icon indicating copy to clipboard operation
kmp-fatframework-cocoa copied to clipboard

Supporting Swift Package Manager

Open amrfarid140 opened this issue 4 years ago • 3 comments

Thanks for this plugin 😄 !

We have a private fork which adds support for Swift package manager. This fork uses the same logic and steps you did for Cocoapods and tunes it to SPM.

Would be happy submit a PR and work to get it merged if that's a direction you want to take.

amrfarid140 avatar Jun 29 '21 10:06 amrfarid140

I'm glad you found it useful!

Uh, it's interesting, so you have implemented both the support for FatFramework and XCFramework?

It's interesting, but I have to think what is the best way to integrate it since the plugin has a strong naming reference on Cocoa 😅

And just to help me understand the direction, what are the differences with the Multiplatform Swift Package Plugin? I mean, why someone should use your fork rather than that plugin?

prof18 avatar Jul 01 '21 19:07 prof18

We only needed XCFramework so we started with that. Bascailly what we did is:

  • Added a new template for Package.swift
  • Replicated the setup tasks to use prepare Package.swift file

Everything else is the same.

The git logic in your plugin suited us and we were already familiar with the setup and tasks. With your plugin a single command will build an XCFramework, push it to master and tag the commit but with the other one a user would have to take care of the git work themselves.

amrfarid140 avatar Jul 03 '21 09:07 amrfarid140

Thanks for the explanation. I think that I gonna rebrand a bit to be able to include different distribution channels like yours.

So, if you want, you can submit a PR!

prof18 avatar Jul 09 '21 09:07 prof18