bazelbuild / bazelbuild/rules_apple

Clashing Options in Apple Bitcode Bundle on macOS

Open
#919 6 comments 0 reactions 1 assignee Claimed by @allevato View on GitHub
P3
Dominant language
Starlark
Stars
593
Forks
334
Avg merge
16h 48m
Merged PRs (30d)
9

Description

Hi wonderful Bazel folks,

I'd noticed that if you try to build a macos_bundle with bitcode enabled (--apple_bitcode=embedded), the options clash with the following error: `ld: -bundle and -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) cannot be used together`

Looks like the -bundle option is set in [AppleBinary.java](https://github.com/bazelbuild/bazel/blob/master/src/main/java/com/google/devtools/build/lib/rules/objc/AppleBinary.java). Perhaps a good fix would be to not just set the option if --apple_bitcode is also enabled?

Thanks so much,
Chris

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.