Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
warlockosx opened this issue Sep 19, 2022 · 2 comments
Open

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

warlockosx opened this issue Sep 19, 2022 · 2 comments

Comments

@warlockosx
Copy link

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

@thii
Copy link
Contributor

thii commented Sep 22, 2022

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

@warlockosx
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants