As seen in the link A very serious issue has occurred. I urgently request a prompt response. "initializeOffscreen dosent work with new version of deepAR", currently, versions including and below 5.2.0 cannot be downloaded. Furthermore, if you check the update modifications here https://docs.deepar.ai/deepar-sdk/platforms/ios/changelog, starting from version 5.4.2, a priority-related issue has been resolved. However, when initializing Offscreen, there is a side effect that frames are not coming out through frameAvailable as they should.
The current solution is to use version 5.4.1 with initializeOffscreen and use the encoded frames (note, however, that you may encounter thread priority errors [in purple] in Xcode. The app may not crash during use, but there could be performance issues, which I cannot guarantee).
The second method is to use the metalview or, unless there is a special reason not to, use the UIView created by deepAR, specifically the createARView function for rendering. This seems to be the best option at the moment, allowing the use of the latest SDK from deepAR.
Personally, I feel that using the second method seems to be faster.