[ProcessSuspension] 0x1114fa2e0 - ProcessAssertion: Failed to acquire RBS assertion 'WebProcess Background Assertion' for process with PID=1175, error: Error Domain=RBSServiceErrorDomain Code=1 "target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit" UserInfo={NSLocalizedFailureReason=target is not running or doesn't have entitlement com.apple.runningboard.assertions.webkit}
WebKitからインターネット経由で音声データにアクセスしているようなのだが、Background ModesでAudioを定義すると、コンソールログに当該メッセージの出力はなくなり、遷移に遅延が発生することは無くなった。
対処法:
1. Xcodeでプロジェクトを開き、Targets -> Signing & Capabilities を開く。
2. Background Modes -> Audio, AirPlay, and Picture in Picture にチェックを入れる。
但し、この設定を行うとAppleによる審査時に「backgroundで音楽を再生するようになっているが、その証拠をビデオなりで提出せよ」と指摘されてリジェクトされる。
画面遷移が遅くなるこの現象は古いデバイスでアプリを実行している時に発生し、比較的新しいデバイスでは発生しないので、この現象が発生する場合は古いデバイスは実行対象外とするなどの策を講じる必要があるかも知れない。
参考記事:
https://developer.apple.com/documentation/avfoundation/media_playback_and_selection/creating_a_basic_video_player_ios_and_tvos/enabling_background_audio
https://stackoverflow.com/questions/58887304/ios-13-webaudio-is-totally-broken-for-html-audio-elements-within-a-webview/58889528#58889528
https://developer.apple.com/forums/thread/127734