This Visual Studio Code extension simplifies the process of creating and managing iOS projects. It automates the generation of initial project files, the creation of an Xcode project using XcodeGen, and the setup of debugging configurations for iOS development.
- Create New iOS Projects: Easily set up a new project with predefined
launch.jsonandproject.ymlfiles. - Generate Xcode Project: Use the
Generate xcodeprojtask to generate an Xcode project file (xcodeproj), necessary for building the application. - Launch and Debug iOS Applications: Seamlessly debug your iOS application using Nisarg Jhaveri's iOS Debug extension, which relies on the
Build using xcodebuildtask.
- Generate Project Files: Use the
XcodeGen - Generate projectcommand to create a new project. You will be prompted to input the application name and bundle id prefix. The extension will generate the necessaryproject.yml,launch.jsonandApplication.swiftfiles to get started.
- Run the
Generate xcodeprojTask: Before building your application, you must generate the.xcodeprojfile. Run theGenerate xcodeprojtask manually to accomplish this. Currently, this task needs to be triggered manually as chaining multipledependsOntasks is not supported.
- Launch the iOS Application: After generating the Xcode project, you can launch your iOS application. This process will automatically trigger the
Build using xcodebuildtask and attach the 'iOS Debug' extension for debugging.
- The extension uses the provided app name and bundle ID prefix to generate a
project.ymlfile, whichxcodegenuses to create the Xcode project. - It also sets up an initial
Application.swiftfile with a basic SwiftUI structure.
- The generated
launch.jsonincludes the necessary configuration for launching and debugging the iOS application. - The
preLaunchTaskis set toBuild using xcodebuildto ensure that the Xcode project is up-to-date before debugging.
- The extension currently does not support chaining multiple
dependsOntasks, requiring manual intervention for theGenerate xcodeprojtask.

