CommunityToolkit / CommunityToolkit/Maui.NativeLibraryInterop
Unable to bind frameworks that contain bundles
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 249
- Forks
- 48
- PR merge metrics
- No merged PRs in 30d
Description
Hi, I'm trying to create a binding library for the Usercentrics framework. The binding for the Usercentrics Core framework works as expected. The binding for the UsercentricsUI framework crashes at runtime when calling any UI related method.
UsercentricsUI/ResourceLoader.swift:28: Fatal error: [USERCENTRICS] Cannot load bundle
I have uploaded a sample branch with minimal adjustments (calling Usercentrics methods in GetString) to the NewBinding template.
Is there a BuildAction to include bundles at runtime?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the NewBinding template and the linked sample branch, tracing the Usercentrics calls made from GetString. Reproduce the crash at UsercentricsUI/ResourceLoader.swift:28 and inspect how the binding build handles framework bundles; done means UI methods load their bundle at runtime without the fatal error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, ios, swift
- Domain
- build-system, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 28/100