macOS App hanging for at least 2000 ms because of check for macOS app running on the main thread.
Opened this issue · 3 comments
- I have updated Purchases SDK to the latest version
- I have read the Contribution Guidelines
- I have searched the Community
- I have read docs.revenuecat.com
- I have searched for existing Github issues
Describe the bug
A clear and concise description of what the bug is. The more detail you can provide the faster our team will be able to triage and resolve the issue. 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.
- Environment
- Platform: macOS
- SDK version: 4.40.1
- StoreKit version:
- StoreKit 1
- StoreKit 2 (enabled with
usesStoreKit2IfAvailable(true)
)
- OS version: Sonoma 14.1.1
- Xcode version: 15.3
- Device and/or simulator:
- Device
- Simulator
- Environment:
- Sandbox
- TestFight
- Production
- How widespread is the issue. Percentage of devices affected. 100% users.
- Debug logs that reproduce the issue. Complete logs with
Purchases.logLevel = .verbose
will help us debug this issue.
All good in debug, it only happens in production and in the App Store.
- Steps to reproduce, with a description of expected vs. actual behavior
- Create a new macOS project.
- Add revenueCat framework.
- Set environment to prod.
- Need to fiddle a little bit with the revenueCat SDK to make sure MapAppStoreDetector is called.
App hangs at status = SecStaticCodeCheckValidity
It throws the following warning when running locally:
-
Other information (e.g. stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.)
Problem seems to be related to this code status = SecStaticCodeCheckValidity running on the main thread. -
Additional context
It only happens on the App Store.
👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!
Sorry it took so long, but the fix is merged and will be a part of next release!