"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Getting errors when adding Vuforia view as a subview

I'm trying to add the Vuforia view as a subview instead of the main view. CORRECTION: Before the error was caused by recursively calling loadView. However I moved all the initialization code to viewDidLoad, and I'm still getting a black background and errors

2017-12-26 13:20:21.646356-0500 deleteSCNGLTest[23190:8443509] Unable to bind video background texture!! after Rendering of the video background failed() glError (0x506)

Permission has been given to use the camera, everything works fine when I change the code back, and the viewFrame for the subview is

(origin = (x = 0, y = 0), size = (width = 640, height = 1136))

so I know there's something being shown. Any ideas what I need to do to get this to work?