[Security] This method should not be called on the main thread as it may lead to UI unresponsiveness.について

結論としてはAppleのバグのようなので、解消されるのを待つ。
Xcode14.2で確認しており、Xcode14.3でも解決していないことを確認しています。

# 背景
Xcode14.2から確認している症状で、WKWebViewでURLを読み込んだタイミングで以下のようなセキュリティ警告が出力される。

```console.log
2023-04-04 11:11:57.020259+0900 live[21252:3813530] [Security] This method should not be called on the main thread as it may lead to UI unresponsiveness.
2023-04-04 11:11:57.020321+0900 live[21252:3813530] [Security] This method should not be called on the main thread as it may lead to UI unresponsiveness.
2023-04-04 11:11:57.024072+0900 live[21252:3813530] [Security] This method should not be called on the main thread as it may lead to UI unresponsiveness.
2023-04-04 11:11:57.024105+0900 live[21252:3813530] [Security] This method should not be called on the main thread as it may lead to UI unresponsiveness.
2023-04-04 11:11:57.025367+0900 live[21252:3813530] [Security] This method should not be called on the main thread as it may lead to UI unresponsiveness.
2023-04-04 11:11:57.025398+0900 live[21252:3813530] [Security] This method should not be called on the main thread as it may lead to UI unresponsiveness.
2023-04-04 11:11:57.026119+0900 live[21252:3813530] [Security] This method should not be called on the main thread as it may lead to UI unresponsiveness.
2023-04-04 11:11:57.026141+0900 live[21252:3813530] [Security] This method should not be called on the main thread as it may lead to UI unresponsiveness.
2023-04-04 11:11:57.027330+0900 live[21252:3813530] [Security] This method should not be called on the main thread as it may lead to UI unresponsiveness.
2023-04-04 11:11:57.028150+0900 live[21252:3813530] [Security] This method should not be called on the main thread as it may lead to UI unresponsiveness.
2023-04-04 11:11:57.056087+0900 live[21252:3813530] [Security] This method should not be called on the main thread as it may lead to UI unresponsiveness.
2023-04-04 11:11:57.056137+0900 live[21252:3813530] [Security] This method should not be called on the main thread as it may lead to UI unresponsiveness.
2023-04-04 11:11:57.527047+0900 live[21252:3813530] [Security] This method should not be called on the main thread as it may lead to UI unresponsiveness.
2023-04-04 11:11:57.527159+0900 live[21252:3813530] [Security] This method should not be called on the main thread as it may lead to UI unresponsiveness.
2023-04-04 11:11:57.527567+0900 live[21252:3813530] [Security] This method should not be called on the main thread as it may lead to UI unresponsiveness.
2023-04-04 11:11:57.527598+0900 live[21252:3813530] [Security] This method should not be called on the main thread as it may lead to UI unresponsiveness.
2023-04-04 11:11:57.532355+0900 live[21252:3813530] [Security] This method should not be called on the main thread as it may lead to UI unresponsiveness.
2023-04-04 11:11:57.532382+0900 live[21252:3813530] [Security] This method should not be called on the main thread as it may lead to UI unresponsiveness.
2023-04-04 11:11:57.533972+0900 live[21252:3813530] [Security] This method should not be called on the main thread as it may lead to UI unresponsiveness.
2023-04-04 11:11:57.534002+0900 live[21252:3813530] [Security] This method should not be called on the main thread as it may lead to UI unresponsiveness.
2023-04-04 11:11:57.534569+0900 live[21252:3813530] [Security] This method should not be called on the main thread as it may lead to UI unresponsiveness.
2023-04-04 11:11:57.534591+0900 live[21252:3813530] [Security] This method should not be called on the main thread as it may lead to UI unresponsiveness.
2023-04-04 11:11:57.536753+0900 live[21252:3813530] [Security] This method should not be called on the main thread as it may lead to UI unresponsiveness.
2023-04-04 11:11:57.536778+0900 live[21252:3813530] [Security] This method should not be called on the main thread as it may lead to UI unresponsiveness.
```

AppDelegateではこのように表示される。
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/245300/faacee87-64f5-7006-5cb1-1e43737ca017.png)
26個のWarning
![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/245300/758e01d0-a998-2d2c-5c8f-7395244e1e80.png)

# フォーラム
- [In Xcode 14 & iOS 16 purple warnings starting with 'This method should not be called on the main thread as it may lead to UI unresponsiveness.'](https://stackoverflow.com/questions/74038451/in-xcode-14-ios-16-purple-warnings-starting-with-this-method-should-not-be-ca)
    - こちらのフォーラムでバグっぽいねとのこと。下記AppleDeveloperのリンクが貼られている。
- [Xcode 14 & iOS 16 purple warnings starting with "[Security] This method should not .. "](https://developer.apple.com/forums/thread/714467?answerId=734799022#734799022)
    - Appleテクニカルサポートが降臨し、問題について解説されています。