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

Error: 'struct' value has no field or method 'objc' with Bazel@HEAD #2020

Closed
sgowroji opened this issue Jul 17, 2023 · 1 comment · Fixed by #2023
Closed

Error: 'struct' value has no field or method 'objc' with Bazel@HEAD #2020

sgowroji opened this issue Jul 17, 2023 · 1 comment · Fixed by #2023

Comments

@sgowroji
Copy link
Member

https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/3171#0189619a-63fd-418f-bdbe-d5293ad3138f

Platform : MacOS

Logs :

ERROR: /Users/buildkite/builds/bk-imacpro-7/bazel-downstream-projects/rules_apple/test/starlark_tests/targets_under_test/apple/BUILD:990:25: in apple_static_xcframework rule //test/starlark_tests/targets_under_test/apple:ios_static_xcfmwk_with_objc_sdk_dylibs_and_and_sdk_frameworks:
Traceback (most recent call last):
	File "/Users/buildkite/builds/bk-imacpro-7/bazel-downstream-projects/rules_apple/apple/internal/xcframework_rules.bzl", line 903, column 73, in _apple_static_xcframework_impl
		link_result = linking_support.register_static_library_linking_action(ctx = ctx)
	File "/Users/buildkite/builds/bk-imacpro-7/bazel-downstream-projects/rules_apple/apple/internal/linking_support.bzl", line 256, column 31, in _register_static_library_linking_action
		objc = linking_outputs.objc,
Error: 'struct' value has no field or method 'objc'
Available attributes: output_groups, outputs
(04:11:34) ERROR: /Users/buildkite/builds/bk-imacpro-7/bazel-downstream-projects/rules_apple/test/starlark_tests/targets_under_test/apple/BUILD:990:25: Analysis of target '//test/starlark_tests/targets_under_test/apple:ios_static_xcfmwk_with_objc_sdk_dylibs_and_and_sdk_frameworks' failed
(04:11:34) ERROR: Analysis of target '//test/starlark_tests:apple_static_xcframework_objc_generated_modulemap_file_content_test' failed; build aborted: Analysis failed

Steps :

git clone https://github.com/bazelbuild/rules_apple.git
git reset 4b4f645b75ba1df7e70244b696151bb2172ac8f2 --hard
export USE_BAZEL_VERSION=7060f6fc79da582479aacb528bffa96f51c5a98e
bazel build tools/... test/...

Culprit : bazelbuild/bazel@426f225

CC Greenteam @mai93

@mai93
Copy link

mai93 commented Jul 17, 2023

@keith Tracking bug for this change: bazelbuild/bazel#17377

keith added a commit that referenced this issue Jul 17, 2023
This was removed on bazel @ HEAD but still required for supporting older
versions.

Fixes #2020
keith added a commit that referenced this issue Jul 17, 2023
This was removed on bazel @ HEAD but still required for supporting older
versions.

Fixes #2020
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

Successfully merging a pull request may close this issue.

2 participants