[Security] This method should not be called on the main thread as it may lead to UI unresponsiveness.
(意訳) [セキュリティ] このメソッドは、UIが応答しなくなる可能性があるため、メインスレッドで呼び出すべきではありません。
I just want to circle back on this. The team mentioned that this is a bug with Xcode 14 beta 6 / WebKit and that Apple will need to fix it.
(意訳) この件に関して周知したいと思います。これは Xcode 14 beta 6 / WebKit のバグであり、Apple が修正する必要があると言及しました。
I'm going to assume someone on the Xcode team chose to add this warning in the event a developer doesn't account for slow loading or not loading at all an initial wkwebview when the app first launches? Any other theories? Is it safe to ignore the warning?
(意訳) Xcodeチームの誰かが、開発者がアプリを最初に起動したときに、読み込みが遅いことや、最初のwkwebviewを全く読み込まないことを考慮しない場合に、この警告を追加することにしたのだと推測しています。他の説はありますか?警告を無視しても大丈夫ですか?
エラー内容から Swift concurrency に起因する問題だと理解できればよかったのだが、いろんなアプリでBuild Settingsを変更して差異を確認することになった。最終的には現象が異なるが「IllustailがiOS14で起動しない(解決) - CatHand Blog」と同様に Swift concurrency のバックポートにおける問題ではないかと判明した。
結論としては、本件はXcode 13.3における既知の不具合である。
Known Issues
Exporting an app that uses Swift’s concurrency features from an archive with bitcode might fail when the app targets iOS 13.0 – iOS 14.7, watchOS 6.0 – watchOS 7.6, or tvOS 13.0 – 14.7. (89271047)
Workaround: Either uncheck the box Rebuild from bitcode when exporting the app from an archive or disable bitcode (iOS only).
iOS 15.0以下(iOS 13.0〜14.7)が、Deployment target に含まれているアプリ内で Swift concurrency を利用している場合にバイナリのexportに失敗してしまう。
Swift concurrencyを使用しているライブラリをインポートしていても同様なようで、アプリ内DBとしてRealmを使っているがアプリ内コードとしてSwift concurrencyを使っていない ptcgnote でも Enable Bitcode を ON にしたままではAdHocバイナリのexportに失敗してしまった。