woocommerce-ios
woocommerce-ios copied to clipboard
Use a Xcode 14 beta compatible fork of Charts
Description
The Charts library doesn't compile on Xcode 14. This PR switches to a fork of the Charts library. This change is meant to be temporary, which shouldn't land on the trunk branch. There are a couple PR open in the official repository to address this. I'll keep an eye on the repository and revert this change once the official library supports Xcode 14.
Testing instructions
No test required, as this PR goes to the xcode-14
branch.
You can test the changes from this Pull Request by:
- Clicking here or scanning the QR code below to access App Center
- Then installing the build number
pr7371-0405e14
on your iPhone
The test failures on this PR is a bit strange... UI tests on iPhone and iPad pass on my own mac, whereas they fail reliably on CI. Unit tests fail on my own mac too, but more than just the two cases on CI.
Similar to https://github.com/wordpress-mobile/WordPress-iOS/pull/19119, I'll summarize the status of UI and unit tests. I'll come back once next beta is out.
- Two unit tests fail on CI:
- one failure due to a
DataFormatter
bug in Xcode beta. "Monday, Jan 3 at 1:00 AM" is returned when usingEEEE, MMM d, h:mm a
format - the other is also formatter related. "lbs" isn't translated to localized "磅" in Chinese
- one failure due to a
- UI tests fail due to https://github.com/woocommerce/woocommerce-ios/issues/7393
the other is also formatter related. "lbs" isn't translated to localized "磅" in Chinese
This issue is fixed in beta 5.
@crazytonyli I am updating the milestone dates for WCiOS & WCAndroid. Since this PR is currently a draft, I removed the 10.0
milestone from it. I suggest waiting to add the milestone until you're ready to merge the PR. Sorry about the extra hassle.
@oguzkocer No problem. Thanks for the reminder. I should've removed the milestone when I turned this PR to draft.
the other is also formatter related. "lbs" isn't translated to localized "磅" in Chinese
This issue is fixed in Xcode 14 beta 6. Given Apple is about to release iOS 16 next week, I doubt the other two issues are going to be fixed in Xcode 14 GM. I'll start working on a fix.
Just commenting to note that this PR has changes that will also fix #7091, thanks @crazytonyli.
Hi @mokagio , this PR is ready for review. Thanks!
Spooky that the unit tests failed in CI. I retried them and they failed again, in the same way. Trying to replicate locally...
@mokagio Thanks for getting the flaky test passed. https://github.com/woocommerce/woocommerce-ios/pull/7719 should fix this flaky test. 🤞