Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Ability to checkout only specific type of Moya via Carthage #345
Similar to way it's done via CocoaPods where podspec contains different types(Core/Rx/Reactive).
Right now when we pull Moya via Carthage — all 3 versions are downloaded and compiled (as well as specific dependencies for each one).
I've checked Carthage and found zero answers about such possibility.
From all stuff i wrote above i have 3 different assumptions:
I had a thought about dealing with that via
But i just hope to get any advice before starting to dig into that without even knowing if it's reasonable to spend time on this.
Thanks for attention :)
Sadly there is not notion of sub-libraries for Carthage so we can't do the same thing as cocoapods. There is, as far as I know, no way around not building all schemes in a project with Carthage. The solutions you bring up do work but as you indicated they are not ideal.
It is time consuming to build but you can version control it to not have to build it everytime you checkout your repo.
Hey @petester42 -- curious if this could be re-evaluated (though not opening a new issue for it).
I understand that carthage has submodule limitations, but my last
but, as our app only uses vanilla Moya, we only needed to build schemes for:
and I imagine skipping the other 5 frameworks would reduce this time significantly.
Adding version control to not build is only a work around for
I have yet to play around with forks, but is there still no solution to this? Would removing
I'd love more insight on this, and to be able to help out with finding a solution. Otherwise, our alternative is either managing a private fork of Moya, or dropping it entirely (as Pods is not a technical option for this app).
Sadly there is no way to build only certain targets using Carthage. You could just do
Why are pods not an option? (Just curious)
Correct – we tried multiple repos but it got out of hand, quickly. Moya was created as a CocoaPod, and the Carthage support we have today was added after the fact by volunteer contributors (we're very grateful). The Carthage team has been asked for a subspec-like feature to accommodate this, but they have decline (it's antithetical to how they believe libraries should be built).
Yeah -- multiple repos is way out of the question.
Thanks for the quick responses, y'all. You're all a super friendly and
I'll be looking at other ways to bring moya in before going with more
And we can't use pods with any swift libraries at the moment. We have a