how to start from scratch
Asked on 07/30/2024
1 search
To start from scratch in Xcode, you can follow these steps:
-
Disable Breakpoints: If you want to get back to the beginning without interruptions, disable all of your breakpoints with the breakpoint button in the debug bar. This allows you to continue without hitting breakpoints and then turn them back on to retrigger the problem.
-
Run Without Building: If your program is crashing and you need to relaunch it each time, use the command
Control + R
to run without building. This skips the build step and gets you immediately back to debugging. This is useful if you haven't changed your code and want to debug the old code one more time. -
Navigating Xcode: If you're new to Xcode, familiarize yourself with the interface. The project navigator on the left-hand side shows your project's file hierarchy. You can use various navigators to get different perspectives of your project.
-
Creating New Files: You can create new files by right-clicking in the navigator. You can also use the option-drag method to copy existing files or use the clipboard to create new files with the contents of an existing file.
For more detailed guidance, you can refer to the session Xcode essentials.
Relevant Sessions
These sessions provide a comprehensive overview of starting from scratch, debugging, and navigating Xcode effectively.

Meet TabletopKit for visionOS
Build a board game for visionOS from scratch using TabletopKit. We’ll show you how to set up your game, add powerful rendering using RealityKit, and enable multiplayer using spatial Personas in FaceTime with only a few extra lines of code.

Discover RealityKit APIs for iOS, macOS and visionOS
Learn how new cross-platform APIs in RealityKit can help you build immersive apps for iOS, macOS, and visionOS. Check out the new hover effects, lights and shadows, and portal crossing features, and view them in action through real examples.

Build a spatial drawing app with RealityKit
Harness the power of RealityKit through the process of building a spatial drawing app. As you create an eye-catching spatial experience that integrates RealityKit with ARKit and SwiftUI, you’ll explore how resources work in RealityKit and how to use features like low-level mesh and texture APIs to achieve fast updates of the users’ brush strokes.