CommunityToolkit / CommunityToolkit/Maui.NativeLibraryInterop

Unable to bind frameworks that contain bundles

Open
#36 2 comments 0 reactions 0 assignees View on GitHub
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](https://usercentrics.com) 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](https://github.com/MerlinTHS/UsercentricsIOSBinding) 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

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.