iOS Object Capture Questions

I'm really excited about the Object Capture APIs being moved to iOS, and the complex UI shown in the WWDC session. I have a few unanswered questions:

  • Where is the sample code available from?
  • Are the new Object Capture APIs on iOS limited to certain devices?
  • Can we capture images from the front facing cameras?
Post not yet marked as solved Up vote post of Josh_Fuel3D Down vote post of Josh_Fuel3D
2.5k views

Replies

I’m running Xcode 15.0 beta (15A5160n) and building on an iPhone 14 Pro Max simulator running iOS 17.0 (21A5248u), and I’ve set the iOS Deployment Target to 17.0, but the compiler cannot find the ObjectCaptureView or ObjectCaptureSession APIs from RealityKit. I see in the documentation that these are in Beta.

Is there something I’m missing?

  • I had the same problem. But adding Mac and then removing Mac as a build target and leaving me with just the iOS target seemed to fix it.

  • Connecting a real device running iOS 17 and using it as build destination will also make Xcode successfully index these types.

  • Thanks! Running it on a physical device running iOS 17 developer beta makes it work for me.

Add a Comment

You’ll probably need the sample code, which is unavailable as of Wednesday afternoon

We apologize the sample app is not yet available as anticipated -- please stay tuned as we expect it to be available soon in the developer documentation for Object Capture.

Supported devices for the guided capture UI are listed in the session video and include the iPhone 12 Pro (w/ LiDAR) and newer as well as the LiDAR-capable iPad Pro (3rd generation) and newer. We recommend that you check the ObjectCaptureSession.isSupported on a given device before trying to make a session to see if a device is supported. (Note simulator is not supported.)

The ObjectCaptureSession utilizes only the back-facing cameras and LiDAR.

  • Any updates on this. Can you give any insights on the timeline when the sample app code should be released?

  • Yes, please do let us know when the app is available from the WWDC 2023 videos. This will save us a lot of time poking around in the few snippets from the video. Thank you!

  • It looks like iOS17 Beta 5 broke ObjectCaptureSession. It no longer compiles.

Hey! Any updates?

  • The code breaks in iOS 7 beta 4, legend has it. As always, dev is a moving target.

Add a Comment

The most recent version of this code works great. Thanks for the update.