Skip to content

Support configuring log file output directory for xcodemake incremental builds #313

@heartInsert

Description

@heartInsert

Problem

When incrementalBuildsEnabled: true is set in .xcodebuildmcp/config.yaml, the xcodemake tool writes build log files directly into the project root directory. The filenames are the full command line, resulting in files like:

xcodemake -project MyApp.xcodeproj -scheme MyApp -configuration Debug -skipMacroValidation -destination platform=iOS Simulator,id=XXXX build.log

Each variation in build parameters (different simulator ID, extra flags like -quiet, clean, COMPILER_INDEX_STORE_ENABLE=NO, etc.) creates a separate log file. Over time this pollutes the project root with dozens of log files.

While .gitignore can prevent them from being committed, they still clutter the working directory, show up in IDE file explorers, and are generally not where build artifacts belong.

Proposed Solution

Add a configuration option (e.g. logDirectory) in .xcodebuildmcp/config.yaml to specify where xcodemake log files are written. For example:

incrementalBuildsEnabled: true
logDirectory: .xcodebuildmcp/logs

A sensible default like .xcodebuildmcp/logs/ or artifacts/logs/ would also be welcome, rather than the project root.

Environment

  • XcodeBuildMCP with incrementalBuildsEnabled: true
  • macOS, Xcode 26

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions