purchases-ios: Crash at launch Xcode 16 iOS 18 - EXC_BAD_ACCESS 0x100b63934 (0x100b638e0 + 84) specialized withCheckedContinuation(isolation:function:_:)

Describe the bug Crashes at launch with a not so useful stacktrace.

RevenueCat 4.43.2 Xcode 16 beta 5 + iOS 18 crash

  1. Environment
    1. Platform: iOS
    2. SDK version: 4.43.2.
    3. StoreKit version:
      • StoreKit 1
      • StoreKit 2 (enabled with usesStoreKit2IfAvailable(true))
    4. OS version: 18
    5. Xcode version: 16 beta 5
    6. Device and/or simulator:
      • Device
      • Simulator
    7. Environment:
      • Sandbox
      • TestFlight
      • Production
    8. How widespread is the issue. Percentage of devices affected. 100%
  2. Debug logs that reproduce the issue.

No logs, just this stacktrace.

  1. Steps to reproduce, with a description of expected vs. actual behavior

Launch the app.

  1. Other information (e.g. stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.)
<compiler-generated>
specialized withCheckedContinuation<A>(isolation:function:_:)

image

image

  1. Additional context Add any other context about the problem here.

We want to keep supporting iOS 12. Is the v.4.x of RevenueCat going to be deprecated?

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 44 (14 by maintainers)

Most upvoted comments

Looks like temporarily moving to withUnsafeContinuation and withUnsafeThrowingContinuation might do the trick. We’ve updated the #4286 to do that, if you wanna give it a shot

@fire-at-will 5.2.0 (not the newest), and note that I am not even sure its RevenueCat - I think this is just an overall iOS/Xcode 16 “crisis” where any use of this could be broken? I have a lot of my own code + other third-party SDK’s. I am purely commenting to warn others that I am not sure if Xcode 16 is safe for anything.

From iOS 18 Beta 7, the issue is fixed from Apple side so hopefully the public release of iOS 18 will not have this issue. I still see crashes on TestFlight but from users who are using iOS 18 Beta 6 or below.

@rudrankriyam Unfortunately, I can still reproduce in Xcode 16 beta 6 by running the app in a Sonoma host as “Designed for iPhone/iPad”. Can you confirm if it crashes for you in that scenario?

@SAllen0400 @kristofferbv you’re both right, it also crashes in withCheckedThrowingContinuation. I will update issue report.