-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert to just using CocoaPods for dependencies #4096
Conversation
Thanks for the PR, and thanks for your work on cocoapods, we get a lot of value out of it. One nice thing about using carthage, especially with large frameworks like zxingobjc, is that we only pay the build tax once - we build the framework for all arches only one time. Whereas with cocoapods, it seems like every time I switch arches, or do a clean build, I'm rebuilding all frameworks, which happens not infrequently, and takes a long time. We have some Pods which frequently change, and the cocoapods ergonomics have served that pretty well, but the majority of our dependencies rarely change, for which the carthage build-once-and-cache-artifact model (as I understand it) seems faster in aggregate. So, even though I agree your changes simplify the setup process, I'm hesitant to make this switch, because I think it would hurt people who build Signal-iOS the most frequently (which includes me - and I'm selfish). Is there something that we could do to ameliorate this with our cocoapods setup? |
You could use CocoaPods Rome, https://github.com/CocoaPods/Rome to pre-generate the frameworks in the same way and manually link the frameworks (like how it works with WebRTC) - it'd probably require adding a Podfile to a subfolder and compiling etc in there. I've always wondered why people see these kind of issues but we don't at Artsy, my guess is it's because projects like this do a lot in work in dev pods and I wonder if CocoaPods/CocoaPods#8253 would allow scoping those to their own project meaning the more static pods would live in their own. |
Interesting, looks like there's this too: https://github.com/leavez/cocoapods-binary |
Alright, I've updated this PR to use cocoapods-binary which automatically inlines a static version of your library for XZing. I added some docs on it on the CocoaPods guides: https://guides.cocoapods.org/plugins/pre-compiling-dependencies.html |
Just wanted to say thanks for looking into this - I haven't forgotten about it, but wanted to do some more internal testing with it. Working to have less setup steps is definitely appreciated. |
Bump. This looks like a great PR, is it going to be mainlined? |
First time contributor checklist
Contributor checklist
Description
Removes Carthage as a dependency manager, it looks like it was still around for legacy reasons and was only being used to handle a single dependency that was available on CocoaPods. This simplifies the setup process, removes a build phase script and requires less maintenance.
I also took a quick look over the Podfile and simplified that a bit by using the implicit
abstract_target
.Fixes #1471