CommunityToolkit / CommunityToolkit/Maui.NativeLibraryInterop

Unable to bind frameworks that contain bundles

オープン
#36 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る
documentation
主要言語
C#
スター
249
フォーク
48
PR マージ指標
30日以内にマージされた PR はありません

説明

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?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

NewBinding テンプレートとリンクされたサンプルブランチから始め、GetString から行われる Usercentrics の呼び出しを追跡します。UsercentricsUI/ResourceLoader.swift:28 でクラッシュを再現し、binding のビルドが framework bundles をどのように処理するかを調査します。完了の条件は、UI メソッドが fatal error なしで実行時にその bundle をロードできることです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
csharp, ios, swift
領域
build-system, mobile
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
28/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。