03
Three beginner goals, three different answers
The answer changes according to the work being attempted. A student who wants to understand variables does not need the same setup as a student submitting a signed app.
| Goal |
What can start on an existing computer |
What eventually needs Xcode |
| Learn Swift grammar |
Read examples, edit files, write small command-line exercises, ask Cursor for explanations |
A compiler or test environment to confirm the code behaves as expected |
| Build a SwiftUI screen |
Draft view code, rename variables, discuss layout ideas |
SwiftUI previews, an iOS build target, and an actual run |
| Submit a course app |
Plan files, review changes, document features |
Build validation, simulator or device testing, signing, and the required distribution path |
Goal one: Swift practice
For the first stage, Cursor can explain types, functions, structures, optionals, loops, and error messages. A small command-line exercise gives you a controlled first check because it does not pretend to be a full iOS app.
Use a reversible exercise:
- Ask Cursor to create one Swift file containing a simple function.
- Save the original file before changing it.
- Ask Cursor to explain the expected input and output.
- Run the file with an available Swift compiler or test environment.
- Compare the actual result with the explanation.
- Review the diff before accepting any change.
This teaches an important habit: an answer from Cursor is a proposal, not an automatic pass. If the code cannot be compiled or tested, the student has learned how to read code, but has not yet verified a working program.
Goal two: SwiftUI practice
SwiftUI is Apple’s framework for declaring user interfaces. Cursor can write a View, adjust modifiers, and explain layout code. Apple’s official SwiftUI materials describe the framework, while Xcode supplies the development workflow in which previews and targets are configured (Apple’s SwiftUI overview).
That creates a practical split:
- Cursor writes or changes the page.
- Xcode supplies the project context.
- Xcode’s preview shows whether the view can be rendered.
- Xcode’s build checks whether the target can compile.
- The simulator checks behavior beyond a static preview.
Think of Cursor as helping write the homework and Xcode as the laboratory where the homework runs. A page that looks correct in a code response is not yet a working iOS screen.
Goal three: a course submission
A course app adds requirements that code generation cannot settle by itself. The project may need navigation, data flow, asset handling, a deployment target, tests, or a signed run on a device.
For this stage, the minimum evidence should include:
- The SwiftUI page appears in an Xcode preview.
- The main interactions work in a simulator.
- The project builds without unresolved errors.
- The student can explain each AI-generated change.
- The project can be reopened from the saved files.
- Any required device or distribution step has been checked in the correct Apple workflow.