-
Notifications
You must be signed in to change notification settings - Fork 516
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to include multiple frameworks file and use in iOS binding library #21579
Comments
Can you try something like this in the project file? <ItemGroup>
<ObjcBindingApiDefinition Include="ApiDefinition1.cs" />
<ObjcBindingApiDefinition Include="ApiDefinition2.cs" />
<ObjcBindingApiDefinition Include="ApiDefinition3.cs" />
<ObjcBindingCoreSource Include="StructsAndEnums1.cs" />
<ObjcBindingCoreSource Include="StructsAndEnums2.cs" />
<ObjcBindingCoreSource Include="StructsAndEnums3.cs" />
</ItemGroup> |
Hi, I’ve been working on payment integration in my .NET MAUI project and explored the alternative template from the Maui.NativeLibraryInterop GitHub. The basic template works fine, and the Android implementation for payment integration also functions as expected. However, when I include the .xcframework in the Xcode project, the iOS application crashes during the splash screen, with no exception thrown. I would greatly appreciate your help in resolving this issue. Thanks, |
Please provide the following to try to diagnose the problem:
|
Hi, ` |
ApplicationOutput.zip Thanks, |
Looks like there's a problem with FPLoggerKit.framework:
the interesting part is the path to the framework:
which is not correct, it should be:
I don't know where "NewBinding.framework" comes from, can you get an MSBuild binlog for a clean build? |
bindlogs.zip Please find the attached binlogs Edit - NewBinding.Framework is the framework which additionally uses frameworks called FPLoggerKit |
Ah, I see. I think you need to follow the success case here: CommunityToolkit/Maui.NativeLibraryInterop#43 (comment) That would basically not copy any nested frameworks into NewBinding.framework (step 3), and then you need to manually reference each of the frameworks NewBinding.framework needs as separate NativeReference items (step 4). |
@rolfbjarne Thanks a lot for the help, Application launches without the crashing. |
Hi, Please help me with this --------------------.csproj----------------------------------------
/Users/adarshchiniwar/.nuget/packages/communitytoolkit.maui.nativelibraryinterop.buildt Binding... Done. Exiting with error code 1. |
I'm not sure what's going on, but it seems there are some dependency calculation that goes wrong or is incomplete in Maui.NativeLibraryInterop. I would suggest filing an issue here, to see if they can help: https://github.com/CommunityToolkit/Maui.NativeLibraryInterop/issues |
Hi @rolfbjarne, I’ve already logged the issue but haven’t received a response yet. Could you please confirm if the following approach would work? If so, I’ll give it a try: Create an Xcode project of type Framework. Thanks, |
Yes, generally speaking that process should still work. Note that third-party frameworks often have quirks that might need some kind of extra attention, but nothing that shouldn't be doable. |
Apple platform
iOS
Framework version
net8.0-*
Affected platform version
Description
Hi,
We have got 10 xcframework files that requires for an integration a payment device. I know that we need to create a ApiDefinitions and structsAndEnums.cs using Sharpie, How can i include ApidDefinitions and structsAndEnums.cs for each framework file in iOS Binding library and use it in .net maui project.
Thanks,
Adarsh
Steps to Reproduce
Please help me with the sample project if you have. Below is .csproj file of iOS binding library.
Did you find any workaround?
No response
Build logs
No response
The text was updated successfully, but these errors were encountered: