swift-development
БесплатноЗапускает вложенные скриптыНе проверенComprehensive Swift development for building, testing, and deploying iOS/macOS applications. Use when Claude needs to: (1) Build Swift packages or Xcode…
Об этом скилле
Swift Development
Prerequisites
- macOS with Xcode 15+ installed (Xcode 16+ for Swift 6)
- Xcode Command Line Tools:
xcode-select --install - Verify:
xcodebuild -versionandswift --version
Quick Start
New Swift Package
# Use the included script for full setup
./scripts/new_package.sh MyLibrary --type library --ios --macos
# Or manually
swift package init --type library --name MyLibrary
Build and Test
# SPM packages
swift build
swift test
# Xcode projects
xcodebuild -workspace App.xcworkspace -scheme App \
-destination 'platform=iOS Simulator,name=iPhone 15' build
# Use included script for common options
./scripts/run_tests.sh --parallel --coverage
Format and Lint
# Use included script
./scripts/format_and_lint.sh Sources/
# Check mode (CI)
./scripts/format_and_lint.sh --check
Simulator Management
# Use included script
./scripts/simulator.sh list
./scripts/simulator.sh boot "iPhone 15"
./scripts/simulator.sh screenshot
./scripts/simulator.sh dark
Core Workflows
Building iOS Apps
# Debug build for simulator
xcodebuild -workspace App.xcworkspace -scheme App \
-destination 'platform=iOS Simulator,name=iPhone 15' \
build
# Release archive
xcodebuild archive \
-workspace App.xcworkspace -scheme App \
-archivePath ./build/App.xcarchive \
-configuration Release
# Export IPA (use templates from assets/ExportOptions/)
xcodebuild -exportArchive \
-archivePath ./build/App.xcarchive \
-exportPath ./build/export \
-exportOptionsPlist assets/ExportOptions/app-store.plist
Testing
# All tests
xcodebuild test -workspace App.xcworkspace -scheme App \
-destination 'platform=iOS Simulator,name=iPhone 15'
# Specific test
xcodebuild test -only-testing:AppTests/MyTestClass/testMethod
# With coverage
xcodebuild test -enableCodeCoverage YES \
-resultBundlePath ./TestResults.xcresult
App Installation
# Install on booted simulator
xcrun simctl install booted ./Build/Products/Debug-iphonesimulator/App.app
# Launch
xcrun simctl launch booted com.company.app
Official Documentation
Reference Links (for humans)
These are Apple's official documentation links for manual browsing:
| Resource | URL |
|---|---|
| Swift Documentation | https://developer.apple.com/documentation/swift |
| SwiftUI | https://developer.apple.com/documentation/swiftui |
| Swift Concurrency | https://developer.apple.com/documentation/swift/concurrency |
| Swift Testing | https://developer.apple.com/documentation/testing |
Note: Apple's documentation sites are JavaScript SPAs and cannot be fetched programmatically with WebFetch. Use GitHub-based sources below instead.
WebFetch-Compatible Sources (Raw GitHub URLs)
Always use raw.githubusercontent.com URLs — regular github.com URLs return garbled HTML/JSON.
Base URL prefix: https://raw.githubusercontent.com/apple
Swift Testing (/swift-testing/main/):
| Resource | Path |
|---|---|
| README | README.md |
| Defining Tests | Sources/Testing/Testing.docc/DefiningTests.md |
| Organizing Tests | Sources/Testing/Testing.docc/OrganizingTests.md |
| Expectations | Sources/Testing/Testing.docc/Expectations.md |
| Parameterized Testing | Sources/Testing/Testing.docc/ParameterizedTesting.md |
| Traits Overview | Sources/Testing/Testing.docc/Traits.md |
| Trait Reference | Sources/Testing/Testing.docc/Traits/Trait.md |
| Adding Tags | Sources/Testing/Testing.docc/AddingTags.md |
| Adding Comments | Sources/Testing/Testing.docc/AddingComments.md |
| Associating Bugs | Sources/Testing/Testing.docc/AssociatingBugs.md |
| Bug Identifiers | Sources/Testing/Testing.docc/BugIdentifiers.md |
| Attachments | Sources/Testing/Testing.docc/Attachments.md |
| Enabling/Disabling Tests | Sources/Testing/Testing.docc/EnablingAndDisabling.md |
| Limiting Execution Time | Sources/Testing/Testing.docc/LimitingExecutionTime.md |
| Parallelization | Sources/Testing/Testing.docc/Parallelization.md |
| Exit Testing | Sources/Testing/Testing.docc/exit-testing.md |
| Known Issues | Sources/Testing/Testing.docc/known-issues.md |
| Testing Async Code | Sources/Testing/Testing.docc/testing-asynchronous-code.md |
| Testing for Errors | Sources/Testing/Testing.docc/testing-for-errors-in-swift-code.md |
| Migrating from XCTest | Sources/Testing/Testing.docc/MigratingFromXCTest.md |
| Vision & Design | Documentation/Vision.md |
| CLI Debugging | Documentation/CommandlineDebugging.md |
| Environment Variables | Documentation/EnvironmentVariables.md |
Other Swift Packages:
| Resource | Full Raw URL |
|---|---|
| Swift Async Algorithms | https://raw.githubusercontent.com/apple/swift-async-algorithms/main/README.md |
| Swift Collections | https://raw.githubusercontent.com/apple/swift-collections/main/README.md |
**For Swift Evolution
Установить swift-development в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл swift-development?
Comprehensive Swift development for building, testing, and deploying iOS/macOS applications. Use when Claude needs to: (1) Build Swift packages or Xcode projects from command line, (2) Run tests with XCTest or Swift Testing framework, (3) Manage iOS simulators with simctl, (4) Handle code signing, provisioning profiles, and app distribution, (5) Format or lint Swift code with SwiftFormat/SwiftLint, (6) Work with Swift Package Manager (SPM), (7) Implement Swift 6 concurrency patterns (async/await, actors, Sendable), (8) Create SwiftUI views with MVVM architecture, (9) Set up Core Data or SwiftData persistence, or any other Swift/iOS/macOS development tasks.
Как установить скилл swift-development?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл swift-development запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic