Skip to content

Commit 9666e8b

Browse files
authored
Improve objc header detection (#283)
This fixes the logic introduced in #281.
1 parent 8588437 commit 9666e8b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

BazelExtensions/xcode_configuration_provider.bzl

+2-3
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,8 @@ def _extract_generated_sources(target, ctx):
9494
if CcInfo in target:
9595
cc_info = target[CcInfo]
9696
files.append(cc_info.compilation_context.headers)
97-
elif hasattr(target, "objc"):
98-
objc = target.objc
99-
files.append(objc.header)
97+
elif hasattr(target, "objc") and hasattr(target.objc, "header"):
98+
files.append(target.objc.header)
10099

101100
if hasattr(target, "objc"):
102101
objc = target.objc

0 commit comments

Comments
 (0)