Xcode Build Analyzer
Installation
SKILL.md
Xcode Build Analyzer
Instructions
Systematically analyze and fix Xcode build errors:
-
Get error summary:
xcodebuild -project Leavn.xcodeproj -scheme Leavn -destination 'platform=iOS Simulator,name=LeavnTest' build 2>&1 | grep "error:" | cut -d: -f4- | sort -u -
Categorize by type:
- Import issues: Missing SwiftData, UIKit, etc.
- Type mismatches: Wrong return types, protocol conformances
- Actor isolation: @MainActor property access from nonisolated
- Property wrappers: @ObservedObject on @Observable types
- Missing types: Deleted files still referenced
- Binding issues: $var on non-@Bindable types