tvOS xcode project manually adding rootViewController not supported (2019.4.9)

When I compile a project using 2019.4.9 for tvOS, the xcode project compiles fine but the app crashes immediately when the app tries to run with this error message:

CrashReporter: initialized

Built from ‘2019.4/staging’ branch, Version ‘2019.4.9f1 (50fe8a171dd9)’, Build type ‘Release’, Scripting Backend ‘il2cpp’

→ applicationDidFinishLaunching()

[Window] Manually adding the rootViewController’s view to the view hierarchy is no longer supported. Please allow UIWindow to add the rootViewController’s view to the view hierarchy itself.

We’ve not had any issues with this project for years, any ideas what’s going wrong?

Got to the bottom of when this happens… so if an Apple TV is in sleep mode but Xcode can connect to it, if you try and build and run a unity project to it crashes. If you pre-wake the Apple TV then it runs as expected. So perhaps this isn’t an issue that would affect any normal users, but it’s still a bit of a weird one and probably shouldn’t crash.