build-debugging

Diagnose and resolve iOS build and dependency resolution failures.

1.1k|81|Updated Nov 30, 2025
One-click install
npx skills add https://github.com/CharlesWiltgen/Axiom --skill build-debugging
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: build-debugging
Source: https://github.com/CharlesWiltgen/Axiom/tree/main/.claude-plugin/plugins/axiom/skills/build-debugging
Command: npx skills add https://github.com/CharlesWiltgen/Axiom --skill build-debugging

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This discipline focuses on diagnosing build and dependency problems, including “No such module” and “Multiple commands produce” errors.

Core Features & Use Cases

  • Dependency resolution workflows and environment checks
  • Build setting diagnostics and duplication resolution
  • Pressure scenarios for time-constrained fixes

Quick Start

Prompt: "Resolve a 'No such module' error after adding a new Swift package."

Frequently Asked Questions about build-debugging

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I resolve a 'No such module' error in Xcode after adding a Swift package?

A 'No such module' error occurs when Xcode cannot find a Swift package you've added. Clear derived data, verify the package is linked in Build Phases, check that the target membership is set correctly, and rebuild. If using SwiftPM, ensure the package dependency is declared in Package.swift and that version constraints allow the expected version to resolve.

What causes 'Multiple commands produce' errors in Xcode builds?

'Multiple commands produce' errors happen when duplicate build rules or files generate the same output. Diagnose by checking Build Phases for duplicate Copy Bundle Resources or Compile Sources entries, remove conflicting CocoaPods or SwiftPM declarations, and verify no files are assigned to multiple targets. Rebuild after cleaning derived data.

How do I debug Swift Package resolution failures?

Diagnose SwiftPM resolution issues by examining version constraints in Package.swift, checking dependency graphs for conflicts, running `swift package resolve` from the command line, and inspecting Package.resolved. Verify internet connectivity, validate semantic versioning in dependency declarations, and test with explicit version pinning to isolate constraint conflicts.

How do I fix CocoaPods dependency conflicts?

CocoaPods conflicts arise from incompatible version constraints across pods. Run `pod repo update`, review the Podfile for conflicting version specs, use `pod install --repo-update` to refresh, and check `Podfile.lock` for resolution details. Consider broadening version ranges or pinning specific compatible versions across dependent pods.

Can I mix CocoaPods and Swift Package Manager in the same Xcode project?

Yes, you can combine CocoaPods and SwiftPM in one project, but managing both requires careful dependency tracking to avoid conflicts. Use CocoaPods for Objective-C libraries and SwiftPM for Swift packages where possible, ensure no pod declares a dependency also pulled by SwiftPM, and test build settings in both local development and CI pipelines.

Why does my build fail in CI but succeed locally?

CI and local build divergence typically stems from cached derived data, environment-specific build settings, or missing dependency resolution steps. Reproduce by cleaning caches between builds, verify SwiftPM and CocoaPods are installed and updated identically in CI, confirm Xcode versions match, and validate that all framework search paths and build settings are set explicitly rather than relying on defaults.