Hi! I found a lot of crashes (in Xcode Organizer) about WKWebView creating on 15.1 (19B74) and iOS 15.1.1 (19B81). It doesn't reproduce on other versions. Looks like it relates to some access permissions but don't have idea what should I do to avoid to this crash.
Hardware Model: iPhone14,5
Role: Foreground
Date/Time: 2021-12-27 22:11:52.7900 -0800
Launch Time: 2021-12-27 22:11:31.9694 -0800
OS Version: iPhone OS 15.1.1 (19B81)
Release Type: User
Baseband Version: 1.15.05
Exception Type: EXC_CRASH (SIGKILL)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Thread 0 name:
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x00000001b79bc504 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001b79bcb9c mach_msg + 76 (mach_msg.c:119)
2 libdispatch.dylib 0x00000001806aa27c _dispatch_mach_send_and_wait_for_reply + 520 (mach.c:815)
3 libdispatch.dylib 0x00000001806aa62c dispatch_mach_send_with_result_and_wait_for_reply + 56 (mach.c:2019)
4 libxpc.dylib 0x00000001f15ceb9c xpc_connection_send_message_with_reply_sync + 240 (connection.c:974)
5 TCC 0x00000001e86740c0 tccd_send_message + 940 (TCC.c:490)
6 TCC 0x00000001e8679e08 __TCCAccessRequest_block_invoke.213 + 876 (TCC.c:591)
7 libdispatch.dylib 0x000000018068f660 _dispatch_client_callout + 20 (object.m:560)
8 libdispatch.dylib 0x000000018069e8b4 _dispatch_lane_barrier_sync_invoke_and_complete + 56 (queue.c:1016)
9 libsystem_trace.dylib 0x000000019b19f668 _os_activity_initiate_impl + 64 (activity.c:131)
10 TCC 0x00000001e86754e0 TCCAccessRequest + 476 (TCC.c:1019)
11 TCC 0x00000001e867473c TCCAccessPreflight + 300 (TCC.c:1651)
12 WebKit 0x000000018f45660c WebKit::checkUsageDescriptionStringForType(WebKit::MediaPermissionType) + 268 (TCCSoftLink.h:42)
13 WebKit 0x000000018f490630 WebKit::WebPreferences::platformInitializeStore() + 72 (UserMediaPermissionRequestManagerProxy.mm:46)
14 WebKit 0x000000018f57e118 WebKit::WebPreferences::WebPreferences(WTF::String const&, WTF::String const&, WTF::String const&) + 204 (WebPreferences.cpp:65)
15 WebKit 0x000000018f57de30 WebKit::WebPreferences::createWithLegacyDefaults(WTF::String const&, WTF::String const&, WTF::String const&) + 72 (WebPreferences.cpp:64)
16 WebKit 0x000000018f528e24 WebKit::WebPageGroup::WebPageGroup(WTF::String const&) + 700 (WebPageGroup.cpp:100)
17 WebKit 0x000000018f57ffa0 WebKit::WebProcessPool::WebProcessPool(API::ProcessPoolConfiguration&) + 208 (WebPageGroup.cpp:102)
18 WebKit 0x000000018f127cac -[WKProcessPool _initWithConfiguration:] + 88 (WebProcessPool.cpp:221)
19 WebKit 0x000000018f130e9c -[WKProcessPool init] + 56 (WKProcessPool.mm:99)
20 WebKit 0x000000018f129dd4 -[WKWebViewConfiguration processPool] + 40 (WKWebViewConfiguration.mm:466)
21 WebKit 0x000000018f1299f8 -[WKWebViewConfiguration copyWithZone:] + 144 (WKWebViewConfiguration.mm:379)
22 WebKit 0x000000018f128dd0 -[WKWebView _initializeWithConfiguration:] + 112 (WKWebView.mm:338)
23 WebKit 0x000000018f128d4c -[WKWebView initWithFrame:configuration:] + 80 (WKWebView.mm:575)
24 WebKit 0x000000018f1315ec -[WKWebView initWithFrame:] + 96 (WKWebView.mm:235)