Skip to content

bazel 3.7.0 iOS issues #1233

@junr03

Description

@junr03

Updating bazel to 3.7.0 or later creates the following errors in the iOS builds:

ERROR: /Users/jnino/src/envoy-mobile/library/swift/src/BUILD:5:23: every rule of type _swift_static_framework implicitly depends upon the target '@bazel_tools//tools/objc:libtool', but this target could not be found because of: no such target '@bazel_tools//tools/objc:libtool': target 'libtool' not declared in package 'tools/objc' (did you mean 'libtool.sh'?) defined by /private/var/tmp/_bazel_jnino/e2e6858b12cc5d95c5e2dcf9dce57ac4/external/bazel_tools/tools/objc/BUILD
ERROR: Analysis of target '//:ios_dist' failed; build aborted: Analysis failed
INFO: Elapsed time: 17.452s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (12 packages loaded, 11 targets configured)

I have tested with the 0.18.0 release of rules_swift and the 0.21.2 release of rules_apple.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions