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

Cannot be used with 'QMUIKit' #153

Open
nameIsYong opened this issue Dec 15, 2022 · 3 comments
Open

Cannot be used with 'QMUIKit' #153

nameIsYong opened this issue Dec 15, 2022 · 3 comments

Comments

@nameIsYong
Copy link

nameIsYong commented Dec 15, 2022

demo: https://github.com/nameIsYong/QMUIKit_About

QMUIKit =>. https://github.com/Tencent/QMUI_iOS


2022-12-15 13:47:26.648396+0800 QMUIKitDemo[17531:1357246] *** Assertion failure in -[_UINavigationBarVisualProviderModernIOS setAppearanceAPIVersion:], _UINavigationBarVisualProviderModernIOS.m:549
2022-12-15 13:47:26.658508+0800 QMUIKitDemo[17531:1357246] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'We shouldn't be decreasing the API version... right?'
*** First throw call stack:
(
0 CoreFoundation 0x000000018040e7ec __exceptionPreprocess + 172
1 libobjc.A.dylib 0x0000000180051144 objc_exception_throw + 56
2 Foundation 0x0000000180b13e08 _userInfoForFileAndLine + 0
3 UIKitCore 0x00000001103e7810 -[_UINavigationBarVisualProviderModernIOS setAppearanceAPIVersion:] + 232
4 UIKitCore 0x000000011039c868 -[UINavigationBar _commonNavBarInit] + 220
5 UIKitCore 0x000000011039cec8 -[UINavigationBar initWithCoder:] + 1340
6 UIFoundation 0x00000001841ce5b0 UINibDecoderDecodeObjectForValue + 664
7 UIFoundation 0x00000001841ce300 -[UINibDecoder decodeObjectForKey:] + 312
8 UIKitCore 0x00000001103a84b0 -[UINavigationItem initWithCoder:] + 752
9 UIFoundation 0x00000001841ce5b0 UINibDecoderDecodeObjectForValue + 664
10 UIFoundation 0x00000001841ce300 -[UINibDecoder decodeObjectForKey:] + 312
11 UIKitCore 0x0000000110671d94 -[UIViewController initWithCoder:] + 352
12 CocoaDebug 0x000000010341f2a8 $s10CocoaDebug17LogViewControllerC5coderACSgSo7NSCoderC_tcfc + 1320
13 CocoaDebug 0x000000010341f33c $s10CocoaDebug17LogViewControllerC5coderACSgSo7NSCoderC_tcfcTo + 40
14 UIKitCore 0x000000011096ef50 -[UIClassSwapper initWithCoder:] + 1588
15 UIFoundation 0x00000001841ce5b0 UINibDecoderDecodeObjectForValue + 664
16 UIFoundation 0x00000001841ce7ac UINibDecoderDecodeObjectForValue + 1172
17 UIFoundation 0x00000001841ce300 -[UINibDecoder decodeObjectForKey:] + 312
18 UIKitCore 0x000000011096e678 -[NSCoder(UIIBDependencyInjectionInternal) _decodeObjectsAndTrackChildViewControllerIndexWithParent:forKey:] + 184
19 UIKitCore 0x000000011067208c -[UIViewController initWithCoder:] + 1112
20 UIKitCore 0x00000001105c9634 -[UINavigationController initWithCoder:] + 88
21 CocoaDebug 0x00000001033e6008 $s10CocoaDebug0aB20NavigationControllerC5coderACSgSo7NSCoderC_tcfc + 84
22 CocoaDebug 0x00000001033e609c $s10CocoaDebug0aB20NavigationControllerC5coderACSgSo7NSCoderC_tcfcTo + 40
23 UIKitCore 0x000000011096ef50 -[UIClassSwapper initWithCoder:] + 1588
24 UIFoundation 0x00000001841ce5b0 UINibDecoderDecodeObjectForValue + 664
25 UIFoundation 0x00000001841ce300 -[UINibDecoder decodeObjectForKey:] + 312
26 UIKitCore 0x000000011097254c -[UIRuntimeConnection initWithCoder:] + 88
27 UIFoundation 0x00000001841ce5b0 UINibDecoderDecodeObjectForValue + 664
28 UIFoundation 0x00000001841ce7ac UINibDecoderDecodeObjectForValue + 1172
29 UIFoundation 0x00000001841ce300 -[UINibDecoder decodeObjectForKey:] + 312
30 UIKitCore 0x000000011096e534 -[NSCoder(UIIBDependencyInjectionInternal) _decodeObjectsWithSourceSegueTemplate:creator:sender:forKey:] + 288
31 UIKitCore 0x0000000110970500 -[UINib instantiateWithOwner:options:] + 756
32 UIKitCore 0x0000000110e49d14 -[UIStoryboard __reallyInstantiateViewControllerWithIdentifier:creator:storyboardSegueTemplate:sender:] + 232
33 QMUIKitDemo 0x0000000102c579cc $s11QMUIKitDemo14ViewControllerC12touchesBegan_4withyShySo7UITouchCG_So7UIEventCSgtF + 260
34 QMUIKitDemo 0x0000000102c57c0c $s11QMUIKitDemo14ViewControllerC12touchesBegan_4withyShySo7UITouchCG_So7UIEventCSgtFTo + 100
35 UIKitCore 0x0000000110d29064 forwardTouchMethod + 264
36 UIKitCore 0x0000000110d36904 -[UIWindow _sendTouchesForEvent:] + 416
37 UIKitCore 0x0000000110d37f90 -[UIWindow sendEvent:] + 3184
38 UIKitCore 0x0000000110d16224 -[UIApplication sendEvent:] + 692
39 UIKitCore 0x0000000110d92b10 __dispatchPreprocessedEventFromEventQueue + 6824
40 UIKitCore 0x0000000110d94774 __processEventQueue + 5612
41 UIKitCore 0x0000000110d8d650 __eventFetcherSourceCallback + 220
42 CoreFoundation 0x00000001803731dc CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 24
43 CoreFoundation 0x0000000180373124 __CFRunLoopDoSource0 + 172
44 CoreFoundation 0x0000000180372894 __CFRunLoopDoSources0 + 232
45 CoreFoundation 0x000000018036cf00 __CFRunLoopRun + 756
46 CoreFoundation 0x000000018036c7f4 CFRunLoopRunSpecific + 584
47 GraphicsServices 0x0000000188faec98 GSEventRunModal + 160
48 UIKitCore 0x0000000110cfc5d4 -[UIApplication _run] + 868
49 UIKitCore 0x0000000110d005cc UIApplicationMain + 124
50 libswiftUIKit.dylib 0x000000010321cfc0 $s5UIKit17UIApplicationMainys5Int32VAD_SpySpys4Int8VGGSgSSSgAJtF + 100
51 QMUIKitDemo 0x0000000102c5880c $sSo21UIApplicationDelegateP5UIKitE4mainyyFZ + 104
52 QMUIKitDemo 0x0000000102c58794 $s11QMUIKitDemo11AppDelegateC5$mainyyFZ + 44
53 QMUIKitDemo 0x0000000102c58890 main + 28
54 dyld 0x0000000102f51fa0 start_sim + 20
55 ??? 0x0000000102d3de50 0x0 + 4342406736
56 ??? 0x2c54800000000000 0x0 + 3194318773200879616
)
libc++abi: terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'We shouldn't be decreasing the API version... right?'
terminating with uncaught exception of type NSException
CoreSimulator 857.13 - Device: iPhone 14 (8717C387-D3AC-42D2-A9A9-CD0DF5FD0A48) - Runtime: iOS 16.1 (20B72) - DeviceType: iPhone 14
(lldb)

@shay-wong
Copy link

我在 16.2 系统下遇到了同样的问题,16 以下没遇到问题

@nameIsYong
Copy link
Author

我在 16.2 系统下遇到了同样的问题,16 以下没遇到问题

Tencent/QMUI_iOS#1469

是IOS13版本适配问题,看样子CocoaDebug 已经停更了。项目已不用该框架了,可以使用netfox 代替它,但是netfox有点卡。

@shay-wong
Copy link

我在 16.2 系统下遇到了同样的问题,16 以下没遇到问题

Tencent/QMUI_iOS#1469

是IOS13版本适配问题,看样子CocoaDebug 已经停更了。项目已不用该框架了,可以使用netfox 代替它,但是netfox有点卡。

感谢,已解决

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

2 participants