CommunityToolkit / Maui.NativeLibraryInterop

Maui.NativeLibraryInterop is a community-created library of binding samples to help .NET MAUI developers interop with native libraries more easily
MIT License
181 stars 28 forks source link

Is this compatible with CocoaPods? #54

Closed Picao84 closed 1 month ago

Picao84 commented 1 month ago

It seems I cannot make this work with CocoaPods. While the Xcode project builds without any issues, building the binding library always comes up with errors saying that the pod added cannot be found? The error goes away if I add the pod references to the main project, but then it gives me another error where it then cannot find the actual project pod?

Picao84 commented 1 month ago

I've fixed it by avoiding the creation of a xcworkspace through the flag "install! 'cocoapods', :integrate_targets => false" on my pod file. Maybe this should be on documentation because using an xcworkspace, which is the recommended implementation for native iOS projects, does not seem to work for the library interop.