bazelbuild / rules_apple

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

Generated XCFramework fails on Xcode 15.3 #2456

Open jagobagascon opened 6 months ago

jagobagascon commented 6 months ago

I'm using the apple_static_xcframework rule to generate an XCFramework that includes our C code base:

cc_library(
    name = "some_cc_library",
)
apple_static_xcframework(
   deps = [ "some_cc_library" ],
)

And all our users running Xcode 15.3 and above are encountering the following error:

Failed to load Info.plist from bundle at path /<...>/OurLib.Framework/Info.plist: No such file or directory.

The generated XCFramework includes an Info.plist file at the root, but the inner frameworks do not. And if I add that missing Info.plist manually (unzipping the xcframework and zipping it back) then everything works as expected.

I'm not sure if this is a bug on Xcode, the bazel rules or something's missing on our side.

Is there any way to include this Info.plist using the Bazel rules?