Skip to content

macos_unit_test fails with default sandboxing #3031

Description

@katre

Trying to run one of the sample macos_unit_test targets, //examples/multi_platform/Buttons:ButtonsMacTests, gives an error (test.log and test.xcresult are attached).

Versions

Bazel version: 9.2.0
Xcode version: 26.5
rules_apple commit: 2d5d349

test.xcresult.zip
test.log

Errors

2026-07-23 19:00:59.268 xcodebuild[33230:6362940] [MT] IDERunDestination: Supported platforms for the buildables in the current scheme is empty.

Followed by:

2026-07-23 19:00:59.883 xcodebuild[33230:6362972]  IDETestOperationsObserverDebug: Failure collecting logarchive: Error Domain=NSCocoaErrorDomain Code=4099 "The connection to service named com.apple.testmanagerd.control was invalidated: Connection init failed at lookup with error 3 - No such process." UserInfo={NSDebugDescription=The connection to service named com.apple.testmanagerd.control was invalidated: Connection init failed at lookup with error 3 - No such process.}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions