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.
Few of these initialisers are gone when a project is created in Xcode 13 Beta with the iOS15 target as on the screenshot below:
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?
Asked
Active
Viewed 482 times
5

Jakub Gawecki
- 801
- 2
- 6
- 14
1 Answers
12
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.

maxxfrazer
- 1,173
- 6
- 15
-
Wow thank you, you saved me a lot of time. I can't remember other instances of methods being defined when building for a device but not in the simulator. Fascinating. – Drew Jul 03 '23 at 22:30