-
Notifications
You must be signed in to change notification settings - Fork 121
Add missing networking_pods dependencies to Yosemite in Podfile
#8418
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
Add missing networking_pods dependencies to Yosemite in Podfile
#8418
Conversation
You can test the changes from this Pull Request by:
|
c293ce2 to
7b5dbe0
Compare
networking_pods dependencies to Yosemite in Podfile
| stripe_terminal | ||
| cocoa_lumberjack | ||
| wordpress_kit | ||
| networking_pods |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the PR description I wrote "Yosemite depends on Networking (e.g. in Store.swift) but the dependency was never explicit in the Podfile".
This change doesn't make the dependency explicit either, to be fair, but is close enough. On the top of my mind, I'm not sure whether we can make one target depend on another with our multiple projects setup. I don't think it's worth spending additional time on this right now because we may be migrating away from CocoaPods soon-ish. So, as long as the app builds, we're good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the record, I think it would be possible to do it by using abstract_target. But I agree it's not worth spending the time.
selanthiraiyan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for explaining the changes in detail. 🎉
This fixes the CI failure experienced in #8400.
The reason those failures occurred is, to my best understanding, that Yosemite depends on Networking (e.g. in
Store.swift) but the dependency was never explicit in thePodfile. I think this was never an issue becausenetworking_podsandyosemite_podsmostly overlapped, namely, all the CocoaPods fromnetworking_podsare also specified inyosemite_pods. Intrunk:woocommerce-ios/Podfile
Lines 171 to 181 in c2bb7fe
woocommerce-ios/Podfile
Lines 120 to 127 in c2bb7fe
But, when #8400 added
KeychainAccesstonetworking_podsit introduced a difference that broke the tests at runtime, resulting in the error seen in CI:By explicitly adding
networking_podsas a dependency inyosemite_pods, the issue is fixed because all the required frameworks are now available.It's worth noting that only the checksum changed in
Podfile.lockbecause this change doesn't add any new dependency to the project itself. The only difference would be in howPods.xcodeprojis generated, but that is a file we don't track in Git.