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

iOS example failing using Bazel version 1.1.0 #130

Open
taher-mosbah opened this issue Nov 12, 2019 · 0 comments
Open

iOS example failing using Bazel version 1.1.0 #130

taher-mosbah opened this issue Nov 12, 2019 · 0 comments

Comments

@taher-mosbah
Copy link

Hello,

Using Bazel version 1.1.0 installed using Homebrew and following the steps on the documentation https://docs.bazel.build/versions/master/tutorial/ios-app.html, I got the following error trying to build the iOS project :

➜  tutorial git:(source-only) ✗ bazel build //ios-app:ios-app

INFO: Writing tracer profile to '/private/var/tmp/_bazel_mmosbah/50a095adb6c59f331d9d5d198a21d596/command.profile.gz'
ERROR: /private/var/tmp/_bazel_mmosbah/50a095adb6c59f331d9d5d198a21d596/external/build_bazel_rules_apple/apple/bundling/entitlements.bzl:300:25: Traceback (most recent call last):
	File "/private/var/tmp/_bazel_mmosbah/50a095adb6c59f331d9d5d198a21d596/external/build_bazel_rules_apple/apple/bundling/entitlements.bzl", line 294
		rule(<3 more arguments>)
	File "/private/var/tmp/_bazel_mmosbah/50a095adb6c59f331d9d5d198a21d596/external/build_bazel_rules_apple/apple/bundling/entitlements.bzl", line 300, in rule
		attr.label(<2 more arguments>)
'single_file' is no longer supported. use allow_single_file instead. You can use --incompatible_disable_deprecated_attr_params=false to temporarily disable this check.
ERROR: Skipping '//ios-app:ios-app': error loading package 'ios-app': in /private/var/tmp/_bazel_mmosbah/50a095adb6c59f331d9d5d198a21d596/external/build_bazel_rules_apple/apple/ios.bzl: in /private/var/tmp/_bazel_mmosbah/50a095adb6c59f331d9d5d198a21d596/external/build_bazel_rules_apple/apple/bundling/binary_support.bzl: Extension file 'apple/bundling/entitlements.bzl' has errors
WARNING: Target pattern parsing failed.
ERROR: error loading package 'ios-app': in /private/var/tmp/_bazel_mmosbah/50a095adb6c59f331d9d5d198a21d596/external/build_bazel_rules_apple/apple/ios.bzl: in /private/var/tmp/_bazel_mmosbah/50a095adb6c59f331d9d5d198a21d596/external/build_bazel_rules_apple/apple/bundling/binary_support.bzl: Extension file 'apple/bundling/entitlements.bzl' has errors
INFO: Elapsed time: 0.163s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (1 packages loaded)

With --incompatible_disable_deprecated_attr_params=false I'm getting another error :

➜  tutorial git:(source-only) ✗ bazel build --incompatible_disable_deprecated_attr_params=false //ios-app:ios-app

INFO: Writing tracer profile to '/private/var/tmp/_bazel_mmosbah/50a095adb6c59f331d9d5d198a21d596/command.profile.gz'
ERROR: /Users/user_name/examples/tutorial/ios-app/BUILD:2:1: //ios-app:UrlGetClasses: no such attribute 'xibs' in 'objc_library' rule
ERROR: /Users/user_name/examples/tutorial/ios-app/BUILD:13:1: //ios-app:ios-app.apple_binary: no such attribute 'non_propagated_deps' in 'apple_binary' rule
ERROR: error loading package 'ios-app': Package 'ios-app' contains errors
INFO: Elapsed time: 0.156s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (1 packages loaded)

If i understand correctly the example project is not up to date with the latest version ?
What's the new equivalent of non_propagated_deps ?

Thanks !

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

1 participant