Dev.to
7/11/2026

Use Xcode MCP Instead of xcodebuild to Save Disk Space and Time in Agentic iOS Development
Short summary
When AI agents use xcodebuild with the same DerivedData folder as Xcode.app, they corrupt each other's incremental build state, causing 13x slowdowns. The solution is to use xcrun mcpbridge (introduced in Xcode 26) which lets agents invoke Xcode's internal build engine, safely sharing one DerivedData directory. Measured results show incremental builds preserved at ~2.3% of clean build time instead of degrading to 86%.
- •Sharing DerivedData between xcodebuild and Xcode.app corrupts incremental state, causing 13x build slowdowns
- •xcrun mcpbridge (Xcode 26) lets agents use Xcode's internal build engine, preserving incremental builds
- •Saves 10-20GB of SSD space by eliminating duplicate DerivedData directories
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



