← 返回
开发者工具 中文

SwiftUI Empty App Init

Initialize a minimal SwiftUI iOS app in the current directory by generating a single `.xcodeproj` with XcodeGen (no workspaces, packages, or tests unless explicitly requested).
通过 XcodeGen 在当前目录初始化一个最小化 SwiftUI iOS 应用,生成单个 `.xcodeproj` 文件(除非明确要求,否则不包含工作区、包或测试)。
ignaciocervino
开发者工具 clawhub v1.0.0 1 版本 99604.5 Key: 无需
★ 2
Stars
📥 2,730
下载
💾 76
安装
1
版本
#latest

概述

SwiftUI Empty App Init

Overview

Initialize a clean, single-target SwiftUI iOS app in the current directory.

The project is generated using XcodeGen to produce a single .xcodeproj, leaving developers ready to start adding features immediately.

Prerequisites

  • Xcode installed and selected via xcode-select
  • XcodeGen available on PATH

If any prerequisite is missing:

  • Stop execution
  • Tell the user exactly what is missing
  • Do not attempt alternative scaffolding or auto-installation

Inputs

  • Project name (required)
  • Minimum iOS deployment target
  • Optional bundle identifier (or use default)

Defaults (use without extra confirmation)

  • Bundle identifier default: com.example.
  • Proceed immediately once required inputs are provided (do not ask extra confirmations)

Core Requirements

The resulting project must:

  • Be generated via XcodeGen (do not hand-author project.pbxproj)
  • Use a single .xcodeproj (no .xcworkspace)
  • Contain exactly one app target
  • Use the SwiftUI @main App lifecycle
  • Contain a minimal ContentView placeholder
  • Contain a minimal Info.plist (avoid unnecessary scene or delegate keys)
  • Contain no Swift packages
  • Contain no test targets unless explicitly requested

Generation

  • Create a minimal project.yml using the provided inputs
  • Generate YourApp.xcodeproj using XcodeGen
  • Ensure the output matches all Core Requirements

Expected Structure

  • project.yml
  • YourApp.xcodeproj
  • YourApp/ (app target source files)
  • Optional config files only

No additional folders, packages, workspaces, scripts, or assets should be present.

Minimal Verification (fast)

  • Confirm YourApp.xcodeproj is generated successfully by XcodeGen.
  • Confirm the default scheme exists (e.g., via a lightweight scheme listing).
  • Do not boot simulators, build, install, or launch unless explicitly requested.

Notes

  • Keep the project minimal and unopinionated
  • Do not add icons/scripts, packages, workspaces, or architecture scaffolding
  • This skill is for app initialization only, not feature scaffolding

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-28 13:34 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,754
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 323,895
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 66 📥 179,922