“Capturing Depth Using the LiDAR Camera” sample project didn’t work on iPad pro

Hi apple engineer, I’m facing a trouble to run the “Capturing Depth Using the LiDAR Camera” on my 5th iPad Pro with Lidar on, and 15.4 iPadOS. Sample project download link: https://developer.apple.com/documentation/avfoundation/cameras_and_media_capture/capturing_depth_using_the_lidar_camera.

I didn’t make any changes on the code, and the error shows here: Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Could not find a storyboard named 'Main' in bundle NSBundle </private/var/containers/Bundle/Application/7E21BAE3-4F36-4ED8-9D91-01D1E0D5C008/LiDARDepth.app> (loaded)' terminating with uncaught exception of type NSException

Can someone help me out? Thank you!

I had a similar problem with the Sample code. It builds just fine but when loaded on the iPad to test it fails because the demo did not include the Storyboard files for the Main Window. In Fact, there are no storyboard files included at all in the zip file used for the demo.and this is not the first time this happened with a sample. How are we to execute a demo programme that is lacking major components of its environment? It's not like the demo was put out there yesterday. I am surprised nobody checked their work with the actual distribution copy of the demo sample.

Franklan I finally got mine to work. I went into XCODE and Under the Files/NEW Tab created a NEW dummy Storyboard file called "MAIN" which after rebuilding my app it worked. The results were startling but I got something that showed progress. Good Luck when you try it

Now I am hitting the lack of a "View Controller" Entry point because there is not a view controller in the file set for this application I wonder why two key elements would e missing from the sample application code files for this demo package. The application sample as released is not ready for prime time yett an how much more of my time will be spent running into issues like this? There is nothing in the readme file that indicates we should expect such stumbling blocks

“Capturing Depth Using the LiDAR Camera” sample project didn’t work on iPad pro
 
 
Q