Skip to content

Generated XCFramework fails on Xcode 15.3 #2456

@jagobagascon

Description

@jagobagascon

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions