Installing with Carthage with --platform iOS still installs all platform frameworks
rajohns08 opened this issue · 11 comments
Do you have any ideas on how to fix that? I'm not sure how that works.
Also, would be nice to understand what's the problem with having it in all the platforms?
Not sure how to fix, but the benefit of only having the iOS platform is it is quicker to download/clone using carthage. I know this works correctly for Alamofire if you'd like to reference their repo for some sort of carthage config or something.
I'll have a look, thanks a lot!
Look like Alamofire's works because they don't take the time to add a pre-loaded archived version of the framework. Here's one example. Meanwhile in Networking I add a precompiled zip file of the frameworks, in this way using carthage update
should be much faster in Networking than in Alamofire. The downside is that Carthage doesn't know how to avoid getting all the platforms.
Missing .zip file in Alamofire
Framework .zip file in Networking
Not sure if this helps, but I noticed when pointing to your swift3 branch in my Cartfile, it worked correctly (only the iOS platform was downloaded)
It's because in the Swift 3 branch, I'm not adding the .zip file.
For me using a library that has the prebuilt binaries works much faster than using another library that doesn't have them, even if that means sending all the platforms since it doesn't need to build anything, just downloads.
Closing now since I don't see a way how we could solve this without removing all the benefits of Prebuilt binaries. Let me know if you find something about it.