diff --git a/rules/import_middleman.bzl b/rules/import_middleman.bzl index 80ea3974b..bc7838e53 100644 --- a/rules/import_middleman.bzl +++ b/rules/import_middleman.bzl @@ -286,6 +286,16 @@ def _file_collector_rule_impl(ctx): alwayslink = False, ) for static_library in replaced_static_framework.replaced.values() + ] + [ + # Bazel7 should speficy dynamic library for link + cc_common.create_library_to_link( + actions = ctx.actions, + cc_toolchain = cc_toolchain, + feature_configuration = cc_features, + dynamic_library = dynamic_library, + alwayslink = False, + ) + for dynamic_library in replaced_dynamic_framework.values() ]), ), ]), diff --git a/tests/ios/in-tree-vendor-prebuilt-deps/dynamic/app/App/main.m b/tests/ios/in-tree-vendor-prebuilt-deps/dynamic/app/App/main.m index ec9a5ed1c..598dbc293 100644 --- a/tests/ios/in-tree-vendor-prebuilt-deps/dynamic/app/App/main.m +++ b/tests/ios/in-tree-vendor-prebuilt-deps/dynamic/app/App/main.m @@ -1,5 +1,6 @@ @import FW; @import OnlySources; +@import MobileFlow; int main(int argc, char **argv) { return UIApplicationMain(argc, argv, nil, nil);