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

Crash on launch of app on iPhone 5 devices #268

Open
maleksiuk opened this issue Apr 7, 2020 · 0 comments
Open

Crash on launch of app on iPhone 5 devices #268

maleksiuk opened this issue Apr 7, 2020 · 0 comments

Comments

@maleksiuk
Copy link

A user with an iPhone 5, iOS 10.3.4 is getting a crash on launch of the app. It's an EXC_BAD_ACCESS with the only useful thread info being method descriptor for RideReceipt.encode(to:).

It is crashing before our application(_:didFinishLaunchingWithOptions:) function does much of anything, and before we do anything with the Uber code (except for importing UberRides and UberCore at the top of the app delegate).

We weren't having this problem on the previous version of our app which was built on iOS Build SDK 17A820 (13.1), but are now that we're using iOS Build SDK 17E255 (13.4). Both use version 0.13 of UberRides.

I was able to reproduce this on an iPhone 5c, just in Release mode. To fix it, all I had to do was move the line @objc public private(set) var chargeAdjustments: [RideCharge]? from the top of RideReceipt to be just before the CodingKeys enum is defined.

I have no idea why that fix works. Maybe you'll be able to figure it out and find a more sane fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant