AVPictureInPictureController iOS18 Failed after opening camera issue?

Thought it was a code problem or a new feature in ios18, tried for two days, but finally found out that it was the difference between xcode version and ios system version that caused the picture-in-picture to be disabled when the camera was on, and no content was shown when the camera was exited, and then the content was shown again automatically.
I hope this can help developers who are in similar situation!

Translated with DeepL Translate: The world's most accurate translator (free version)

Hi, Nick. You should file a feedback with Apple or post about this to the Apple developer forums; these forums are for the Swift language.