bazel-ios / rules_ios

Bazel rules for building iOS applications and frameworks
Apache License 2.0
276 stars 84 forks source link

Update rules for ObjcProvider deprecations #850

Closed luispadron closed 4 months ago

luispadron commented 5 months ago

In Bazel 7+ ObjcProvider no longer supports/provides the required linking attributes.

The migrations is detailed here: https://github.com/bazelbuild/bazel/issues/16939. In summary, as part of the migration, the ObjcProvider fields which previously provided linking related information are now now longer providing that info. In addition to this, a new flag: --incompatible_objc_linking_info_migration was added to further delete these link attrs from the ObjcProvider making it an error if the attr is used or set.

The goal of this PR is to address support for ObjcProvider migration and to instead use the correct linking information from CcInfo. This will support both Bazel 6/7+. It does not try to support --incompatible_objc_linking_info_migration as that requires more changes and should be a separate PR

Depends on: