Skip to content

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.

ParameterTypeRequiredDefaultDescription
namestringYes—The name of the project (used for the directory, scheme, and default bundle identifier)
templatestringYes—The UI framework template. Accepted values: "swiftui", "uikit"
platformstringYes—Target platform. Accepted values: "ios", "macos", "multiplatform"
outputPathstringYes—Absolute path to the directory where the project folder will be created
bundleIdstringNocom.example.<name>The bundle identifier for the project (reverse-DNS notation)
organizationNamestringNo—The organization name included in file headers and project metadata
minimumDeploymentTargetstringNo"17.0"The minimum OS version the app supports

“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"
}

“Scaffold a new macOS SwiftUI app called ClipboardHistory”

{
"name": "ClipboardHistory",
"template": "swiftui",
"platform": "macos",
"outputPath": "/Users/dev/Projects"
}
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.FitnessTracker
Platform: iOS
Template: SwiftUI
Min Target: 17.0
  • scaffold_view — Add a new SwiftUI view file to an existing project
  • scaffold_viewmodel — Generate an ObservableObject view model alongside your views
  • xcode_build — Build the newly created project to verify it compiles
  • xcode_list — List the schemes in the generated project