bazelbuild / examples

Examples for Bazel
http://bazel.build
Apache License 2.0
800 stars 497 forks source link

Error no such attribute 'temporary_directory' in 'xcodeproj_runner' rule with Bazel@HEAD #335

Closed sgowroji closed 9 months ago

sgowroji commented 9 months ago

https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/3365#018b12a0-aaad-4233-88b2-2fb3ed9e5d0a

Platform : MacOS

Logs:

(06:11:17) ERROR: /Users/buildkite/builds/bk-imacpro-5/bazel-downstream-projects/examples/tutorial/ios-app/BUILD:34:10: //ios-app:xcodeproj: no such attribute 'temporary_directory' in 'xcodeproj_runner' rule
(06:11:17) WARNING: Target pattern parsing failed.
(06:11:17) ERROR: Skipping '//ios-app': Error evaluating '//ios-app': error loading package 'ios-app': Package 'ios-app' contains errors
(06:11:17) ERROR: Error evaluating '//ios-app': error loading package 'ios-app': Package 'ios-app' contains errors

Steps:

git clone https://github.com/bazelbuild/examples.git 
git reset 63769f5e2d4c4cd3914eca71d4bc28cbbeedaa0d --hard
export USE_BAZEL_VERSION=1e02f45c81bdf4ff68eb69e6ae834e56aeabcf5b
cd tutorial
bazel build //backend //android //ios-app

CC Greenteam @mai93

brentleyjones commented 9 months ago

I can fix this by bumping the rules_xcodeproj version.

brentleyjones commented 9 months ago

https://github.com/bazelbuild/examples/pull/336