-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate runtime_deps
rule attribute from objc_library
#17643
Comments
@keith FYI. |
Question for you @stravinskii on bazelbuild/rules_apple@7d0ec13#diff-87d742fc0a4603b04747f3070c6070f4cf641ee55b6e1ab46761306e38c719d8 Shouldn't this commit have added |
This change removes objc_library `runtime_deps` rule attribute. Previously, `runtime_deps` propagated Apple frameworks built with rules_apple framework rules (eg. `ios_framework`) to be bundled at top-level bundle rules (e.g. `ios_application`) but avoid linking the framework to allow deferred loading using `NSBundle` APIs. Apple BUILD rules now support propagating Apple frameworks through the `data` rule attribute from `objc_library` and `swift_library` rules to replace this functionality. Fixes bazelbuild#17643 PiperOrigin-RevId: 516909309 Change-Id: I19d20745b23b1ec62cb512ee7a084f38cdb2ea21
Description of the feature request:
Currently, the Objective-C library rule provides the
runtime_deps
rule attribute as means to propagate Apple frameworks (eg.ios_dynamic_framework
) up the dependency graph, and include those framework bundles on top-level Apple rules (e.g.ios_application
), but does not link against that framework (ie. framework will be loaded at runtime usingNSBundle
).To move forward with a more agnostic Objective-C rule, the
runtime_deps
attribute will be deprecated from theobjc_library
rule, and usages ofruntime_deps
should migrate to usedata
instead to propagate Apple frameworks (support was added at f711be0 on the upstream branch).The text was updated successfully, but these errors were encountered: