Skip to content
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

Fix issue with crashes on startup on iPhone X. #8364

Merged
merged 1 commit into from
Dec 19, 2017

Conversation

jklausa
Copy link
Contributor

@jklausa jklausa commented Dec 19, 2017

So, no idea why this is apparently only happening on the X.

The bug is pretty obvious in retrospective — the code was iterating over a list of potential places where the .momd file might be, but it never checked if it already found one.

This in turn meant, that the order of items in the array returned from pathsForResourcesOfType:_inDirectory mattered. For some reason, on iPhone X the Extensions.momd was after WordPress.momd, so the actual, correct result got overriden with nil, which lead to 💥.

Why the order was apparently different on the X then any other device still remains a mystery.

Copy link
Contributor

@elibud elibud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:
Thanks a million for the quick turn around, I'm merging and re-merging to dev

@elibud elibud merged commit 3833c57 into release/9.1 Dec 19, 2017
@elibud elibud added this to the 9.1 ❄️ milestone Dec 19, 2017
@elibud elibud deleted the bug/migrations-hotfix branch December 20, 2017 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants