-
Notifications
You must be signed in to change notification settings - Fork 14
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
Purchases framework causes crash on older iOS devices #278
Comments
👀 SDKONCALL-267 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out! |
fwiw, we do not include any products in our unity app. we have another ios app that handles purchases. our unity game just uses RevenueCat to check the subscription status of the users |
Thanks for the report! That's really weird, it's crashing here: private static let orderedLevels: [LogLevel] = [
.verbose,
.debug,
.info,
.warn,
.error
]
static let order: [LogLevel: Int] = Dictionary(uniqueKeysWithValues:
Self.orderedLevels
.enumerated()
.lazy
.map { ($1, $0) }
) Creating that Which version of Xcode 14 are you using? Can you reproduce this with 14.3? Thanks! |
Ahh sorry I guess it is 4.14.1 of PurchasesHybridCommon (the generated line in our podfile is We've actually been unable to reproduce the crash with our test devices since we don't have an old iOS device (seems to be happening on SE, 6 and similar devices for users. However, we've been seeing this crash happen for users when we built with Xcode 14.3 and Xcode 13.4 (I recently updated my Xcode yesterday and uploaded a new build). And yes, it looks like a similar crash happens when you run the generated xcode workspace with a simulator. But for the simulator, it doesn't matter what ios version the simulator is using (happens on ios 12 and 14 simulators). |
i can confirm moving back to v2.0.1 fixes the issue @NachoSoto |
@NachoSoto any updates here? |
Do you have a screenshot of Xcode when that crash happens? |
@NachoSoto currently having trouble building our app for the simulator (i think related to another package we have), but here's the crash logs. is this helpful? |
This is the crash:
For some reason your project isn't embedding Something about this is likely making it only fail on iOS 12 (which unfortunately I can't even test anymore from a Mac M1...) |
Could you double-click to show us the whole value? 🙏🏻 |
We use EDM4U, which generates that Podfile in your project, and we have seen this issue reported in their repository googlesamples/unity-jar-resolver#575 (comment). They suggest changing the Thanks! |
Even though https://bugs.swift.org/browse/SR-15825 is supposedly fix on Xcode 14.x, and we validated that on CI, that's still crashing for some reason on iOS 12 devices. Fixes RevenueCat/purchases-unity#278, [SDKONCALL-267], SDK-3154.
We've identified the issue. We'll have a release with the fix out soon. Thanks again for reporting this! |
The fix is now released! Thank you for your patience. |
Describe the bug
We had recently updated this framework from 2.0.1 to version 4.14.1. However, we've started getting crashes on older iOS devices. The crash happens right after our splash screen is finished displaying -- right when our first scene is loaded in. The stack trace for this issue is here:
Here's a Sentry error of what's happening:
![Screenshot 2023-04-28 at 11 59 55 AM](https://user-images.githubusercontent.com/29070085/235205419-34deb338-58d7-4263-a6c7-95fa9316f844.png)
Do not remove any of the steps from the template below. If a step is not applicable to your issue, please leave that step empty.
Additional context
Here is our
UpdatedCustomerInfoListener
class:The text was updated successfully, but these errors were encountered: