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: iOS
- SDK version: 4
- StoreKit 2 (enabled with
useStoreKit2IfEnabled) (Y/N): Y
- OS version: iOS16
- Xcode version: Xcode14
Additional context
Add any other context about the problem here.
RevenueCat/DeviceCache.swift:70: Fatal error: [Purchases] - Cached appUserID has been deleted from user defaults. This leaves the SDK in an undetermined state. Please make sure that RevenueCat entries in user defaults don't get deleted by anything other than the SDK. More info: https://rev.cat/userdefaults-crash
0x3820c _assertionFailure(_:_:file:line:flags:) + 312
1 Grow 0x95260c DeviceCache.handleUserDefaultsChanged(notification:) + 4388398604 (<compiler-generated>:4388398604)
2 Grow 0x95267c @objc DeviceCache.handleUserDefaultsChanged(notification:) + 4388398716 (<compiler-generated>:4388398716)
3 CoreFoundation 0x377c4 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 148
4 CoreFoundation 0xde75c ___CFXRegistrationPost_block_invoke + 88
5 CoreFoundation 0xc1a34 _CFXRegistrationPost + 440
6 CoreFoundation 0x4bdc8 _CFXNotificationPost + 704
7 Foundation 0x5c4dc -[NSNotificationCenter postNotificationName:object:userInfo:] + 92
8 Grow 0x957aa0 specialized static DeviceCache.deleteSyncedSubscriberAttributesForOtherUsers(_:) + 4388420256 (<compiler-generated>:4388420256)
9 Grow 0xa055c8 specialized IdentityManager.init(deviceCache:backend:customerInfoManager:attributeSyncing:appUserID:) + 43 (SynchronizedUserDefaults.swift:43)
10 Grow 0xa08018 specialized Purchases.__allocating_init(apiKey:appUserID:userDefaults:observerMode:platformInfo:storeKit2Setting:storeKitTimeout:networkTimeout:dangerousSettings:) + 24 (TransactionsManager.swift:24)
11 Grow 0xa099bc specialized static Purchases.configure(with:) + 4389149116 (<compiler-generated>:4389149116)
12 Grow 0x3d4880 specialized static AppConfig.configApps(_:didFinishLaunchingWithOptions:) + 42 (AppConfig.swift:42)
13 Grow 0x4287a0 specialized AppDelegate.application(_:didFinishLaunchingWithOptions:) + 4382984096 (<compiler-generated>:4382984096)
14 Grow 0x4256bc @objc AppDelegate.application(_:didFinishLaunchingWithOptions:) + 4382971580 (<compiler-generated>:4382971580)
15 UIKitCore 0x35af40 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 300
16 UIKitCore 0x35a664 -[UIApplication _callInitializationDelegatesWithActions:forCanvas:payload:fromOriginatingProcess:] + 2848
17 UIKitCore 0x359640 -[UIApplication _runWithMainScene:transitionContext:completion:] + 856
18 UIKitCore 0x3592b8 -[_UISceneLifecycleMultiplexer completeApplicationLaunchWithFBSScene:transitionContext:] + 176
19 UIKitCore 0x3a3d0c -[UIApplication _compellApplicationLaunchToCompleteUnconditionally] + 48
20 UIKitCore 0x3a2d64 -[UIApplication _run] + 852
21 UIKitCore 0x3a29ec UIApplicationMain + 340
22 libswiftUIKit.dylib 0x352a0 UIApplicationMain(_:_:_:_:) + 104
23 Grow 0xa1d0 main + 4378665424 (HabitType+Extension.swift:4378665424)
24 ??? 0x1b668d948 (缺少)
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.
useStoreKit2IfEnabled) (Y/N): YAdditional context
Add any other context about the problem here.