CommunityToolkit / CommunityToolkit/Maui.NativeLibraryInterop
Unable to bind frameworks that contain bundles
- Ngôn ngữ chính
- C#
- Star
- 249
- Fork
- 48
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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?
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Bắt đầu với template NewBinding và branch mẫu được liên kết, lần theo các lệnh gọi Usercentrics được thực hiện từ GetString. Tái hiện crash tại UsercentricsUI/ResourceLoader.swift:28 và kiểm tra cách binding build xử lý framework bundles; hoàn tất khi các phương thức UI tải bundle của chúng tại runtime mà không gặp fatal error.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- csharp, ios, swift
- Lĩnh vực
- build-system, mobile
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 28/100