project_create
Create a new Xcode project from a template with a pre-configured structure, bundle identifier, and deployment target. This tool generates a ready-to-build project with the appropriate directory layout, Info.plist, and initial source files for either SwiftUI or UIKit.
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
name | string | Yes | — | The name of the project (used for the directory, scheme, and default bundle identifier) |
template | string | Yes | — | The UI framework template. Accepted values: "swiftui", "uikit" |
platform | string | Yes | — | Target platform. Accepted values: "ios", "macos", "multiplatform" |
outputPath | string | Yes | — | Absolute path to the directory where the project folder will be created |
bundleId | string | No | com.example.<name> | The bundle identifier for the project (reverse-DNS notation) |
organizationName | string | No | — | The organization name included in file headers and project metadata |
minimumDeploymentTarget | string | No | "17.0" | The minimum OS version the app supports |
Usage Examples
Section titled “Usage Examples”Create a SwiftUI iOS project
Section titled “Create a SwiftUI iOS project”“Create a new SwiftUI iOS app called FitnessTracker in my Projects folder”
{ "name": "FitnessTracker", "template": "swiftui", "platform": "ios", "outputPath": "/Users/dev/Projects"}Create a UIKit project with a custom bundle ID
Section titled “Create a UIKit project with a custom bundle ID”“Set up a new UIKit iOS project called InventoryManager for Acme Corp”
{ "name": "InventoryManager", "template": "uikit", "platform": "ios", "outputPath": "/Users/dev/Projects", "bundleId": "com.acmecorp.inventorymanager", "organizationName": "Acme Corp"}Create a multiplatform SwiftUI app with a lower deployment target
Section titled “Create a multiplatform SwiftUI app with a lower deployment target”“Create a multiplatform SwiftUI app called NoteSync that supports back to iOS 16.0”
{ "name": "NoteSync", "template": "swiftui", "platform": "multiplatform", "outputPath": "/Users/dev/Projects", "bundleId": "com.notesync.app", "organizationName": "NoteSync LLC", "minimumDeploymentTarget": "16.0"}Create a macOS SwiftUI app
Section titled “Create a macOS SwiftUI app”“Scaffold a new macOS SwiftUI app called ClipboardHistory”
{ "name": "ClipboardHistory", "template": "swiftui", "platform": "macos", "outputPath": "/Users/dev/Projects"}Example Output
Section titled “Example Output”Created project "FitnessTracker" at /Users/dev/Projects/FitnessTracker
Project structure: FitnessTracker/ FitnessTracker.xcodeproj/ FitnessTracker/ FitnessTrackerApp.swift ContentView.swift Assets.xcassets/ Info.plist FitnessTrackerTests/ FitnessTrackerTests.swift FitnessTrackerUITests/ FitnessTrackerUITests.swift
Bundle ID: com.example.FitnessTrackerPlatform: iOSTemplate: SwiftUIMin Target: 17.0Related Tools
Section titled “Related Tools”scaffold_view— Add a new SwiftUI view file to an existing projectscaffold_viewmodel— Generate an ObservableObject view model alongside your viewsxcode_build— Build the newly created project to verify it compilesxcode_list— List the schemes in the generated project