bazel-ios / rules_ios

Bazel rules for building iOS applications and frameworks
Apache License 2.0
278 stars 85 forks source link

Add support for apple platform command line options #816

Closed karim-alweheshy closed 7 months ago

karim-alweheshy commented 10 months ago

Description

Default bazel's transition of native.objc_library was removed in bazel 7. Resulting in the target to be built for the wrong platform. This PR adds the missing transition's command line flags to enable the correct target compilation+linking for the objc_library targets. The transition's code is only added if the host is running on bazel 7 +

Resources

Remove objc_library transition Bazel changes rules_apple changes 1 rules_apple changes 2 rules_apple changes 3

karim-alweheshy commented 10 months ago

A step for bazel 7 migration https://github.com/bazel-ios/rules_ios/issues/795

luispadron commented 8 months ago

@karim-alweheshy I'll rebase and merge this once #835 lands.