Got an error when trying run **tools/set-developer-dir.sh**
Got an error when trying run tools/set-developer-dir.sh
$ tools/set-developer-dir.sh
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
INFO: Repository apple_cross_toolchain instantiated at:
no stack (--record_rule_instantiation_callstack not enabled)
Repository rule apple_cross_toolchain defined at:
/home/vlad/.cache/bazel/_bazel_vlad/66038857d7a9ed64ac3643889e57b293/external/rules_applecross/toolchain/apple_cross_toolchain.bzl:259:40: in
@warlockosx What versions of Bazel and rules_apple/rules_swift are you using?
@thii I using Bazel version 5.3.1. I followed setup instruction (w/o changing WORKSPACE and .bazelrc files - steps 4 and 5 - leaved them as they was in repo). And after that (no files changed) all seems configured and fetched ok,
bazel fetch @rules_applecross//tests/data:dummy_lib Extracting Bazel installation... Starting local Bazel server and connecting to it... INFO: All external dependencies fetched successfully. Loading: 15 packages loaded
but when I tried to build an example by $bazel build //examples/ios/HelloWorldSwiftUI:HelloWorld I get now the following error:
ERROR: /home/vlad/.cache/bazel/_bazel_vlad/66038857d7a9ed64ac3643889e57b293/external/build_bazel_rules_apple/apple/internal/BUILD:15:24: no such target '@bazel_tools//tools/objc:StdRedirect.dylib': target 'StdRedirect.dylib' not declared in package 'tools/objc' defined by /home/vlad/.cache/bazel/_bazel_vlad/66038857d7a9ed64ac3643889e57b293/external/bazel_tools/tools/objc/BUILD and referenced by '@build_bazel_rules_apple//apple/internal:toolchain_support'
ERROR: Analysis of target '//examples/ios/HelloWorldSwiftUI:HelloWorld' failed; build aborted:
INFO: Elapsed time: 1.116s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (11 packages loaded, 17 targets co
nfigured)
Thanks for you attention. I'm new in bazel and want to successfully build sample iOS/MacOS app on Linux (Ubuntu 20.04), then try to build my own.