Hello,
I noticed that you have raised an issue at GitHub- ios binding library with xcframework/framework cannot be referenced in the main .NET MAUI project · Issue #21189 · xamarin/xamarin-macios (github.com)
And you have resolved the problem, I made an answer so that someone with the same issue can refer to it.
It's only intellisense that doesn't work, if you build the project, it'll build just fine. Referencing the binding project directly, something like this from your main project, should work though:
<ItemGroup Condition=" '$(TargetPlatformIdentifier)' == 'ios' "> <Reference Include="../MauiDemoApp.Binding.iOS/bin/Debug/net8.0-ios/Com.SAS.CI360.dll" /> </ItemGroup>
Note that in this case you'll have to build the binding project manually first, it won't be built automatically when you're building the main project. Additionally, in your binding project, you should reference the .xcframework (and not the .framework inside the .xcframework):
<NativeReference Include="SASCollector.xcframework">
Try this:
<
Best Regards,
Wenyan Zhang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.