bazel icon indicating copy to clipboard operation
bazel copied to clipboard

iOS application fails to build with error "No toolchain found for cpu 'watchos_i386", only when invoked with option "--experimental_enable_objc_cc_deps"

Open adamhowardprice opened this issue 9 years ago • 3 comments

When using Tulsi to generate an Xcodeproj for an ios_application, we ran into a problem in which that project would fail to build with the following error: "No toolchain found for cpu 'watchos_i386'" . This issue appears to be the same as is written up here.

It appears this issue only occurs when the option --experimental_enable_objc_cc_deps is used. This is one of the default options when building with Tulsi. The project builds successfully when passing the option --noexperimental_enable_objc_cc_deps to override it.

I spoke with a Google engineer (@aragos) who mentioned that this was likely an unintended consequence of something else in Bazel.

I wasn't sure whether to file this issue against Bazel or Tulsi, so I filed both. The Tulsi issue is https://github.com/bazelbuild/tulsi/issues/3

adamhowardprice avatar Feb 02 '17 05:02 adamhowardprice

//cc @lfpino @c-parsons Any idea here?

meteorcloudy avatar Feb 02 '17 12:02 meteorcloudy

This is a Tulsi issue, not a Bazel issue as such. The flag should only be set if toolchains for all required Apple platforms are part of your --crosstool_top. Tulsi should avoid setting this flag for now, at least until #1279 is fixed. @abaire

aragos avatar Feb 02 '17 14:02 aragos

@abaire Closing this in favor of https://github.com/bazelbuild/tulsi/issues/3

adamhowardprice avatar Feb 06 '17 15:02 adamhowardprice