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

Workaround paste crash on iOS 14.x issue #717

Merged
merged 1 commit into from
Dec 2, 2022
Merged

Conversation

MainasuK
Copy link
Contributor

@MainasuK MainasuK commented Dec 1, 2022

Resolve #660

Paste anything in post compose scene on iOS 14.5+ will crash the app. However, it's normal on iOS 15.0+ and iOS 16.0+. It looks like the paste image feature intro in #486 is somehow not working on iOS 14.x.

Just disable it for iOS 14.x to work around the crash problem.

Reproduce the issue on iPad mini 5 with iOS 14.8.

image

@MainasuK MainasuK added the Bug Something isn't working label Dec 1, 2022
@MainasuK MainasuK requested review from kimar and zeitschlag December 1, 2022 07:35
@MainasuK MainasuK self-assigned this Dec 1, 2022
nextResponder.perform(#selector(UIResponderStandardEditActions.paste(_:)), with: sender)
// fix #660
// https://github.com/mastodon/mastodon-ios/issues/660
if #available(iOS 15.0, *) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of enabling this one feature for iOS >15, we could also think about supporting iOS >15 for the entire app, so just the two most recent iOS-versions. What do you think? cc @kimar @Gargron

Copy link
Contributor

Choose a reason for hiding this comment

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

That could be cool! iOS 15 also lets us use things like AsyncPublisher to do interop between async sequences and Combine.

Copy link
Contributor

Choose a reason for hiding this comment

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

👍 on iOS >= 15 for me as well. I like to pursue n-1 for supported OSes, and given iOS 15 is supported by such a large percentage of device, I personally don't s a reason not to bump.

Copy link
Contributor

Choose a reason for hiding this comment

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

(iOS 15 supports all devices that iOS 14 supports IIRC)

Copy link
Member

Choose a reason for hiding this comment

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

Sounds good to me

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If we update the minimal version in the next build. The iOS 14.x still could install the app but only for v1.4.7.

Maybe we fix this bug and push as v1.4.8. Then update the min OS in v1.5.0. So this issue not bother old OS users.

@MainasuK MainasuK merged commit b15ae5e into develop Dec 2, 2022
@MainasuK MainasuK deleted the fix-issue-660 branch December 2, 2022 05:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crashes when I paste
5 participants