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.json
andproject.yml
files. - Generate Xcode Project: Use the
Generate xcodeproj
task 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 xcodebuild
task.
- Generate Project Files: Use the
XcodeGen - Generate project
command 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.json
andApplication.swift
files to get started.
- Run the
Generate xcodeproj
Task: Before building your application, you must generate the.xcodeproj
file. Run theGenerate xcodeproj
task manually to accomplish this. Currently, this task needs to be triggered manually as chaining multipledependsOn
tasks 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 xcodebuild
task and attach the 'iOS Debug' extension for debugging.
- The extension uses the provided app name and bundle ID prefix to generate a
project.yml
file, whichxcodegen
uses to create the Xcode project. - It also sets up an initial
Application.swift
file with a basic SwiftUI structure.
- The generated
launch.json
includes the necessary configuration for launching and debugging the iOS application. - The
preLaunchTask
is set toBuild using xcodebuild
to ensure that the Xcode project is up-to-date before debugging.
- The extension currently does not support chaining multiple
dependsOn
tasks, requiring manual intervention for theGenerate xcodeproj
task.