CommunityToolkit / CommunityToolkit/Maui.NativeLibraryInterop

Unable to bind frameworks that contain bundles

Open
#36 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

documentation
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.