bazel icon indicating copy to clipboard operation
bazel copied to clipboard

Error message about objc_binary with implicit dependency on missing tool: iossim

Open adamhowardprice opened this issue 11 years ago • 9 comments

Trying to build a fairly straightforward objc_binary, getting this error message.

ERROR: /Users/adamprice/Code/client-ios/components/GLUE/BUILD:82:1: every rule of type objc_binary implicitly depends upon the target '//third_party/iossim:iossim',  but this target could not be found. If this is an integration test, maybe you forgot to add a mock for your new tool?.
ERROR: Loading failed; build aborted.

adamhowardprice avatar Nov 03 '15 23:11 adamhowardprice

@cgrushko ^

adamhowardprice avatar Nov 03 '15 23:11 adamhowardprice

It used to work :) What changed? do you happen to have a minimal repro project?

cgrushko avatar Nov 03 '15 23:11 cgrushko

This happens to me whenever I add a .bazelrc file to my project. The contents do not matter; it can even be empty. The presence of a .bazelrc makes this error message pop up.

cbrauchli avatar Dec 17 '15 06:12 cbrauchli

I also encountered same issue (OS X10.11.2, Xcode: 7.2, iOS SDK 9.2, Bazel 0.1.3). I created a minimal repro project at https://github.com/tetsuok/bazel-ios-app-test, which can be built as follows:

git clone https://github.com/tetsuok/bazel-ios-app-test.git
cd bazel-ios-app-test
bazel build --verbose_failures --ios_sdk_version=9.2 //:ios-app-binary

tetsuok avatar Jan 17 '16 11:01 tetsuok

@damienmg can you route this to the right person?

cgrushko avatar Jan 19 '16 04:01 cgrushko

Humm, bazel info package_path?

Also Kristina is fixing the latest part in which we use the base_workspace so that issue should be resolved when this get merged (today?)

damienmg avatar Jan 19 '16 09:01 damienmg

Oh wait I saw:

This happens to me whenever I add a .bazelrc file to my project. The contents do not matter; it can even
be empty. The presence of a .bazelrc makes this error message pop up.

So, the .bazelrc in your workspace file take precedence over your ~/.bazelrc, so your package path must be wrong because the new bazelrc file does not declare it.

If you want to share a bazelrc it's better to use a master path so %workspace%/tools/bazel.rc (see http://bazel.io/blog/2015/07/01/Configuration-File.html).

damienmg avatar Jan 19 '16 09:01 damienmg

Carmi: I let you follow-up that discussion.

damienmg avatar Jan 19 '16 09:01 damienmg

No update so I guess this is resolved, closing, please ping back if you have more questions.

damienmg avatar Feb 15 '16 10:02 damienmg