iOS17 Found a lot crashs:
NSInternalInconsistencyException: Mutating UITraitCollection is not supported,but app never call related APIs
also found that iOS17 new protocol,crash is happened when set its property
API_AVAILABLE(ios(17.0), tvos(17.0), watchos(10.0)) NS_SWIFT_UI_ACTOR
@protocol UIMutableTraits
Last Exception Backtrace:
0 CoreFoundation 0x19e5924f0 __exceptionPreprocess + 164
1 libobjc.A.dylib 0x196c80480 objc_exception_throw + 60
2 Foundation 0x19dc4bd84 _userInfoForFileAndLine + 0
3 UIKitCore 0x1a11dda78 -[UITraitCollection setToolbarItemPresentationSize:] + 168
4 YYModel 0x11a7dcfdc ModelSetValueForProperty + 1684
5 YYModel 0x11a7d9eb4 ModelSetWithDictionaryFunction + 88
6 CoreFoundation 0x19e5b16b8 -[__NSDictionaryI __apply:context:] + 120
7 YYModel 0x11a7d9dac -[NSObject(YYModel) yy_modelSetWithDictionary:] + 300
8 YYModel 0x11a7dd04c ModelSetValueForProperty + 1796
9 YYModel 0x11a7d9eb4 ModelSetWithDictionaryFunction + 88
10 CoreFoundation 0x19e5b16b8 -[__NSDictionaryI __apply:context:] + 120
11 YYModel 0x11a7d9dac -[NSObject(YYModel) yy_modelSetWithDictionary:] + 300
12 YYModel 0x11a7dd964 ModelSetValueForProperty + 4124
13 YYModel 0x11a7d9eb4 ModelSetWithDictionaryFunction + 88
14 CoreFoundation 0x19e5b16b8 -[__NSDictionaryI __apply:context:] + 120
15 YYModel 0x11a7d9dac -[NSObject(YYModel) yy_modelSetWithDictionary:] + 300
16 YYModel 0x11a7dd04c ModelSetValueForProperty + 1796
17 YYModel 0x11a7d9eb4 ModelSetWithDictionaryFunction + 88