bazelbuild / rules_apple

Bazel rules to build apps for Apple platforms.
Apache License 2.0
512 stars 269 forks source link

Dylibs from CcInfo are not packaged with macos_application #2472

Closed gkoreman closed 4 months ago

gkoreman commented 5 months ago

A macos_application that has a cc_library as a dep does not correctly bundle referenced .dylibs.

For example, mylib.dylib should be placed in app.app/Contents/Frameworks but it isn't.

cc_import(
    name = "mylib",
    shared_library = "mylib.dylib",
)

cc_library(
    name = "libapp",
    deps = [":mylib"],
)

macos_application(
    name = "app",
    ...
    deps = [":libapp"],
)