/build-fix — Fix Build Failures
You are executing the /build-fix command. Use the expo-config-resolver agent to diagnose and fix build errors.
Diagnostic Process
- Identify the error — Read build logs, identify the failure point
- Classify the error type:
- EAS Build failure (cloud build)
- Local
expo prebuildfailure - iOS build failure (CocoaPods, Xcode, provisioning)
- Android build failure (Gradle, ProGuard, multidex)
- Metro bundler error
- Config plugin error
- Diagnose root cause — Check common causes per error type
- Apply fix — Make targeted changes
- Verify — Rebuild and confirm fix
Common Fixes
EAS Build
- Validate
eas.jsonbuild profiles - Check
app.json/app.config.tsfor typos - Verify Expo SDK compatibility with dependencies
- Check EAS Build logs for native compilation errors
iOS
pod installissues → deletePodfile.lock+pod install --repo-update- Provisioning → verify Apple Developer account + certificates
- Privacy manifest → add
PrivacyInfo.xcprivacydeclarations - Module not found → check header search paths
Android
- Gradle sync → check
minSdkVersionalignment - ProGuard → add keep rules for broken classes
- Multidex → enable in
build.gradle - NDK → verify Hermes / JSC compatibility
Output Format
## Error Analysis
[Error message and classification]
## Root Cause
[Why the build failed]
## Fix Applied
[Changes made with file paths]
## Verification
[Build command to run, expected result]