rules_applecross icon indicating copy to clipboard operation
rules_applecross copied to clipboard

Got an error when trying run **tools/set-developer-dir.sh**

Open warlockosx opened this issue 3 years ago • 2 comments

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 ERROR: An error occurred during the fetch of repository 'apple_cross_toolchain': Traceback (most recent call last): File "/home/vlad/.cache/bazel/_bazel_vlad/66038857d7a9ed64ac3643889e57b293/external/rules_applecross/toolchain/apple_cross_toolchain.bzl", line 44 resolve_labels(rctx, <1 more arguments>) File "/home/vlad/.cache/bazel/_bazel_vlad/66038857d7a9ed64ac3643889e57b293/external/bazel_tools/tools/cpp/lib_cc_configure.bzl", line 38, in resolve_labels repository_ctx.path(<1 more arguments>) Not a regular file: /home/vlad/.cache/bazel/_bazel_vlad/66038857d7a9ed64ac3643889e57b293/external/bazel_tools/tools/objc/libtool_check_unique.cc ERROR: no such package '@apple_cross_toolchain//': Traceback (most recent call last): File "/home/vlad/.cache/bazel/_bazel_vlad/66038857d7a9ed64ac3643889e57b293/external/rules_applecross/toolchain/apple_cross_toolchain.bzl", line 44 resolve_labels(rctx, <1 more arguments>) File "/home/vlad/.cache/bazel/_bazel_vlad/66038857d7a9ed64ac3643889e57b293/external/bazel_tools/tools/cpp/lib_cc_configure.bzl", line 38, in resolve_labels repository_ctx.path(<1 more arguments>) Not a regular file: /home/vlad/.cache/bazel/_bazel_vlad/66038857d7a9ed64ac3643889e57b293/external/bazel_tools/tools/objc/libtool_check_unique.cc Loading: 0 packages loaded

warlockosx avatar Sep 19 '22 03:09 warlockosx

@warlockosx What versions of Bazel and rules_apple/rules_swift are you using?

thii avatar Sep 22 '22 02:09 thii

@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.

warlockosx avatar Sep 29 '22 13:09 warlockosx