CommunityToolkit / CommunityToolkit/Maui.NativeLibraryInterop
Unable to bind frameworks that contain bundles
- Langage dominant
- C#
- Étoiles
- 249
- Forks
- 48
- Métriques de merge des PR
- Aucune PR mergée en 30 j
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?
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Piste de recherche
Commencez par le modèle NewBinding et la branche d’exemple liée, en retraçant les appels à Usercentrics effectués depuis GetString. Reproduisez le crash à UsercentricsUI/ResourceLoader.swift:28 et examinez comment le build du binding gère les framework bundles ; le travail est terminé lorsque les méthodes UI chargent leur bundle à l’exécution sans le fatal error.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- csharp, ios, swift
- Domaine
- build-system, mobile
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 28/100