スキル一覧に戻る
miyakawa2449

swift-build

by miyakawa2449

仕様駆動開発とテスト駆動開発で開発するBookmark ソフト

0🍴 0📅 2026年1月9日
GitHubで見るManusで実行

SKILL.md


name: swift-build description: "SwiftプロジェクトのビルドとテストをXcodeコマンドラインで実行(iOS/macOS対応)。Use when: ビルド、テスト、xcodebuild、swift test を依頼された時。"

Swift ビルド&テスト(iOS / macOS 対応)

プラットフォーム別コマンド

iOS Simulator

xcodebuild build -scheme YourApp -destination 'platform=iOS Simulator,name=iPhone 16e'
xcodebuild test -scheme YourApp -destination 'platform=iOS Simulator,name=iPhone 16e'

macOS

xcodebuild build -scheme YourApp -destination 'platform=macOS'
xcodebuild test -scheme YourApp -destination 'platform=macOS'

Mac Catalyst

xcodebuild build -scheme YourApp -destination 'platform=macOS,variant=Mac Catalyst'

実行手順

  1. スキーム確認: xcodebuild -list
  2. フォーマットチェック: swift-format lint -r Sources/
  3. ビルド: 上記プラットフォーム別コマンド
  4. ユニットテスト: 上記プラットフォーム別コマンド
  5. 静的解析: swiftlint lint

Universal Binary(macOS)

# arm64 + x86_64 のユニバーサルビルド
xcodebuild build -scheme YourApp -destination 'platform=macOS' \
  ARCHS="arm64 x86_64" ONLY_ACTIVE_ARCH=NO

クリーンビルド

xcodebuild clean build -scheme YourApp -destination 'platform=macOS'

アーカイブ(リリース用)

iOS

xcodebuild archive -scheme YourApp -archivePath ./build/YourApp.xcarchive \
  -destination 'generic/platform=iOS'

macOS

xcodebuild archive -scheme YourApp -archivePath ./build/YourApp.xcarchive \
  -destination 'platform=macOS'

トラブルシューティング

シミュレーター一覧

xcrun simctl list devices available

利用可能なデスティネーション

xcodebuild -showdestinations -scheme YourApp

スコア

総合スコア

60/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です