スキル一覧に戻る
thiskevinwang

xcode-build-fix

by thiskevinwang

Prompts

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

SKILL.md


name: xcode-build-fix description: Build Xcode projects or workspaces from the CLI, diagnose compile-time/build-time failures, and iterate fixes until the app builds. Use when asked to run xcodebuild, compile iOS/macOS apps, resolve compiler/linker/signing issues, or unblock build errors in .xcodeproj/.xcworkspace repositories.

Xcode Build Fix

Overview

Build the current Xcode app from the CLI, collect compile-time/build-time errors, apply minimal fixes, and repeat until the build succeeds.

Workflow

1) Locate the build entry point

  • Prefer a .xcworkspace if present; otherwise use the .xcodeproj.
  • List schemes to choose a build target.
ls *.xcworkspace *.xcodeproj 2>/dev/null
xcodebuild -list -workspace App.xcworkspace
# or
xcodebuild -list -project App.xcodeproj

2) Build with deterministic settings

  • Use a simulator SDK to avoid device signing and provisioning.
  • Set an explicit derived data path for easier cleanup.
DERIVED_DATA=.build/DerivedData
xcodebuild -workspace App.xcworkspace -scheme App \
  -configuration Debug -sdk iphonesimulator \
  -derivedDataPath "$DERIVED_DATA" build

If there is no workspace:

DERIVED_DATA=.build/DerivedData
xcodebuild -project App.xcodeproj -scheme App \
  -configuration Debug -sdk iphonesimulator \
  -derivedDataPath "$DERIVED_DATA" build

3) Capture and classify failures

Focus only on build-time signals:

  • Swift/Obj-C compile errors: file/line diagnostics; fix code or imports.
  • Module not found: missing package/module map; check build settings and package resolution.
  • Linker errors: missing framework/library, duplicate symbols, or wrong target membership.
  • Package resolution errors: run xcodebuild -resolvePackageDependencies.
  • Code signing errors: keep simulator builds; if necessary, add CODE_SIGNING_ALLOWED=NO.
  • Resource or Info.plist errors: validate file paths and target membership.

4) Apply minimal fixes and rebuild

  • Make the smallest change that addresses the error.
  • Re-run the same build command after each fix.
  • Clean derived data only when errors suggest stale artifacts:
rm -rf .build/DerivedData

5) Stop criteria

  • Build completes with ** BUILD SUCCEEDED **.
  • Summarize the final build command, fixes applied, and any remaining warnings.

Error Playbook

Use these quick heuristics to keep fixes focused:

  • "No such module": verify package integration; ensure target includes the package; resolve packages.
  • "Undefined symbols": add missing framework/library to target; verify OTHER_LDFLAGS.
  • "Duplicate symbols": remove duplicate source files or conflicting libraries.
  • "Swift package resolved but module missing": delete derived data, resolve packages, rebuild.
  • "Code signing is required for product type": build for simulator or set CODE_SIGNING_ALLOWED=NO for the build command only.

Output Expectations

  • Report the exact build command used.
  • Include the top 1–3 actionable error lines.
  • List each fix with the file path and rationale.
  • Confirm the successful build, or explain the blocker if unresolved.

スコア

総合スコア

45/100

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

SKILL.md

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

+20
LICENSE

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

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

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

0/5
Issue管理

オープンIssueが50未満

+5
言語

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

0/5
タグ

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

0/5

レビュー

💬

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