Skip to content

prebuilt: apple_ops, simulator hooks and apple_post_action run from dx (part of #13154) #13772

Closed

Description

@TrapsterDK

Part of #13154.

Where

  • apple/private/tools/ops/BUILD.bazel:46-71: the apple_ops, create_test_simulator and delete_test_simulator binaries. dx_apple_ops is incompatible with Windows (:27-30).
  • Exec actions: apple/private/signing/defs.bzl:69, apple/private/macos/app.bzl:156,310,315, apple/private/ios/cell.bzl:61, apple/private/ios/app.bzl:863, swift/private/tools/xcode_swift.bzl:25.
  • Run-time launchers: apple/private/ios/simulator.bzl:16-66 (arg=simctl descriptor) and apple/private/ios/device.bzl:54.
  • rules_apple ios_xctestrun_runner hooks, which are run by path with no arguments: apple/private/ios/app.bzl:690-695 (create_simulator_action, clean_up_simulator_action, and post_action = //tools/coverage/collect:apple_post_action, at tools/coverage/collect/BUILD.bazel:51-73).

Fix

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hvgPbKqbuDgsTasg7K

Activity

  1. added
    enhancement
    P2
    model:opus
    on Nov 19, 2026
  2. TrapsterDK commented on Nov 19, 2026

    @TrapsterDK
    CollaboratorAuthor

    Next slice: #13896 lands the dx-runtime target-config helpers (#13771). This issue is next: exec actions run dx apple_ops <op> behind a non-Windows select, simulator.bzl/device.bzl launchers go through dx-runtime, and the xctestrun hooks wait on the argv[0] shim from #13770, which is still open.


    Generated by Claude Code

  3. TrapsterDK commented on Nov 19, 2026

    @TrapsterDK
    CollaboratorAuthor

    Next slice: #14073 moves the exec actions to dx apple_ops and the launchers to dx-runtime. What remains is to move the xctestrun hooks (create_test_simulator, delete_test_simulator, apple_post_action) onto the argv[0] shim once #13770 lands, then delete those binaries.


    Generated by Claude Code

  4. TrapsterDK commented on Nov 20, 2026

    @TrapsterDK
    CollaboratorAuthor

    Evidence for PR #14217 (merged): run 44722623751 (task=test, macos_arm64, swift_app) passed, so the create and delete hooks work as dx_subcommand launchers. Run 44722628149 (task=coverage) failed earlier, at the app link (___llvm_profile_runtime undefined), before any hook ran. That failure is tracked in #14225, and the coverage path through dx apple_post_action is re-proved there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2enhancementmodel:opus

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions