WWDC 2021 ARKit Sample Codes Not Compiled

Hi.... I have downloaded both ARKit Sample codes onto Xcode Beta 13.0 and both have syntax errors surrounding "SceneUnderstanding".

Here's a link: https://developer.apple.com/documentation/realitykit/building_an_immersive_experience_with_realitykit

Do I have to download operating system to make it compile? I am using BigSur 11.4 right now.

Replies

Ok... Found partial solution. Since AR works only on device, make sure to compile to the generic iOS Device not simulator. However, there are still 2 line of syntax errors on the code for "underwater". I'll submit that on the Feedback.

Hi, yes, you will get compilation errors if you compile the demo for the simulator. This is because ARKit APIs are not available in the simulator. We are aware of this issue and hope to resolve it by removing the simulators as build targets. If you've already filed this issue on Feedback Assistant, please reply to me with the feedback ID and I can send it to the right team to be triaged.