Add `//lib:swizzle_absolute_xcttestsourcelocation` target (#128)

When this target is linked into an XCTest binary, and the `BUILD_WORKSPACE_DIRECTORY` environment variable is set, the relative paths of `XCTSourceCodeLocation` are made absolute, fixing Test Issue navigation in Xcode.
2 files changed
tree: 83b790a0678f3dbce3b01f7b1c04af7857c53a85
  1. .bazelci/
  2. constraints/
  3. doc/
  4. lib/
  5. platforms/
  6. rules/
  7. test/
  8. tools/
  9. .gitignore
  10. .pre-commit-config.yaml
  11. AUTHORS
  12. BUILD
  13. CODEOWNERS
  14. CONTRIBUTING.md
  15. LICENSE
  16. MODULE.bazel
  17. README.md
  18. WORKSPACE
README.md

Apple Support for Bazel

This repository contains helper methods that support building rules that target Apple platforms. See the docs for how you can use these helpers. Also see rules_apple and rules_swift for more Apple platform rules.

Quick setup

Add the following to your WORKSPACE file to add this repository as a dependency:

load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

http_archive(
    name = "build_bazel_apple_support",
    sha256 = "f4f377d0df696a9112e95d227e55ac8bb7eb44084f37d2d215b18cc8571e5ba8",
    url = "https://github.com/bazelbuild/apple_support/releases/download/1.2.0/apple_support.1.2.0.tar.gz",
)

load(
    "@build_bazel_apple_support//lib:repositories.bzl",
    "apple_support_dependencies",
)

apple_support_dependencies()