Skip to content
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

apple_xcframework doesn't work with data that has glob value for coredata model #2523

Open
xuzhaocheng opened this issue Sep 7, 2024 · 0 comments

Comments

@xuzhaocheng
Copy link

When I try to bundle my coredata model into my xcframework with the following spec:

apple_xcframework(
    name = "MyXcFramework",
    bundle_id = "com.my.MyXcFramework",
    bundle_name = "MyXcFramework",
    deps = [":lib"],
    minimum_os_versions = { "ios": "13.0", "tvos": "15.0", },
    ios = { "device": ["arm64"], "simulator": ["x86_64", "arm64"] },
    infoplists = [":info_plist"],
    data = glob(["path/to/*.xcdatamodeld/*.xcdatamodel"])
)

I can't get a xcframework with *.mond inside it.
Even if I use a specific path for the data: glob(["path/to/model.xcdatamodeld/model.xcdatamodel"])

But it works without glob function:

apple_xcframework(
    name = "MyXcFramework",
    bundle_id = "com.my.MyXcFramework",
    bundle_name = "MyXcFramework",
    deps = [":lib"],
    minimum_os_versions = { "ios": "13.0", "tvos": "15.0", },
    ios = { "device": ["arm64"], "simulator": ["x86_64", "arm64"] },
    infoplists = [":info_plist"],
    data =["path/to/model.xcdatamodeld/model.xcdatamodel"]
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant