3
votes

Learning about the ARKit, I am watching all the AR WWDC content. In Introducing ARKit 3, where RealityKit is used for the first time, there is an example of using AnchorEntity with the 3rd convenience initializer from the first screenshot below. Xcode12.5iOS13 Few of these initialisers are gone when a project is created in Xcode 13 Beta with the iOS15 target as on the screenshot below: Xcode13iOS15 I looked up the documentation and found no extra information regarding this. Initialiser is available with no info on planned deprecation. I find it bizzare. https://developer.apple.com/documentation/realitykit/anchorentity/3255326-init What could be the reason for that? Can this be some sort of a bug related to beta xcode?

1

1 Answers

6
votes

There is no deprecation of the initialiser, you are building for the simulator.

When building for the simulator you don't get the same initialisers, as the simulator doesn't have the ARKit framework.


Change the target to a physical device or "Any iOS Device" and you should be fine.