How can I develop an application with ARKit?

Dear members of the Apple developer community: I am Josemaría, I am thirteen years old and I am from Guayaquil, Ecuador. This year I decided to program an application based on Augmented Reality, and I got more excited when I learned about the SwiftUI framework. I'm working on my project from Swift Playgrounds on an iPad and haven't stopped. I've been going through Apple's developer documentation and came across ARKit, an amazing framework for producing augmented reality experiences. The problem is that I am very disoriented, because I have gotten very confused using the documentation and several YouTube videos only make me doubt more. Another problem is that I don't know how to preview my app with SwiftUI when directed to Augmented Reality and I always get: "An error occurred while compiling because the March-O file could not be generated". I don't have objects in AR and the truth is that I don't know how to start, but if I'm sure of something, it's that I won't give up and that's why I need someone to please give me some advice or help to continue with my project. Thanks for your help.

Answered by stein-a in 701633022

Hi Josemaria, I was able to follow along this tutorial in Swift Playgrounds on my iPad Pro 2018 (without Lidar): https://www.ralfebert.com/ios/realitykit-dice-tutorial/

This is a tutorial that starts off from scratch and builds the app step by step.

I added Camera under App Capabilities to get going, and then entered the code as described in the tutorial. Every time it told me to Run the app, I did so, and it worked. Hopefully this will work for you also.

Accepted Answer

Hi Josemaria, I was able to follow along this tutorial in Swift Playgrounds on my iPad Pro 2018 (without Lidar): https://www.ralfebert.com/ios/realitykit-dice-tutorial/

This is a tutorial that starts off from scratch and builds the app step by step.

I added Camera under App Capabilities to get going, and then entered the code as described in the tutorial. Every time it told me to Run the app, I did so, and it worked. Hopefully this will work for you also.

Thank you very much stein-a! I appreciate your time and consideration, I'm going to review the manual. Have a nice day and greetings from Ecuador.

How can I develop an application with ARKit?
 
 
Q