AVPlayerController. Internal constraints conflicts on tvOS.

I’m getting Auto Layout constraint conflict warnings related to AVPlayerController in my tvOS project.

This issue can be reproduced in an empty tvOS project either by simply using an AVPlayerViewController as a initial view controller or by presenting it.

tvOS 26.2

Simple empty project with only one controller:

import UIKit
import AVKit

class PlayerViewController: AVPlayerViewController {
    override func viewDidLoad() {
        super.viewDidLoad()
    }
}

After presenting that view controller, the following Auto Layout constraint conflict warnings appear in the console:

Unable to simultaneously satisfy constraints.
	Probably at least one of the constraints in the following list is one you don't want. 
	Try this: 
		(1) look at each constraint and try to figure out which you don't expect; 
		(2) find the code that added the unwanted constraint or constraints and fix it. 
(
    "<NSLayoutConstraint:0x60000212f5c0 UIStackView:0x103222520.width >= 217   (active)>",
    "<NSLayoutConstraint:0x60000212f610 H:|-(>=95)-[UIStackView:0x103222520]   (active, names: '|':UIView:0x103216630 )>",
    "<NSLayoutConstraint:0x60000212f660 UIStackView:0x103222520.trailing == UIView:0x103216630.trailing - 95   (active)>",
    "<NSLayoutConstraint:0x60000212f7a0 H:|-(0)-[UIView:0x103216630]   (active, names: '|':_AVFocusContainerView:0x10333aea0 )>",
    "<NSLayoutConstraint:0x60000212f7f0 UIView:0x103216630.trailing == _AVFocusContainerView:0x10333aea0.trailing   (active)>",
    "<NSLayoutConstraint:0x6000021309b0 '_UITemporaryLayoutWidth' _AVFocusContainerView:0x10333aea0.width == 0   (active)>"
)

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x60000212f5c0 UIStackView:0x103222520.width >= 217   (active)>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful.

How can I fix this issue? Thanks.

Thanks for the post and description. Unfortunately I don’t see the code or how you are presenting the AVPlayerViewController but this is very interesting as if you look at the documentation doesn't support subclassing AVPlayerViewController. From the official docs:

The framework doesn't support subclassing AVPlayerViewController. Please read the note on the documentation:

https://developer.apple.com/documentation/avkit/avplayerviewcontroller

Can you provide more information? My recommendation is to download this sample and see how is been build https://developer.apple.com/documentation/avkit/playing-video-content-in-a-standard-user-interface

Albert  WWDR

AVPlayerController. Internal constraints conflicts on tvOS.
 
 
Q