Open tuyen-vuduc opened 7 months ago
@tuyen-vuduc they automatically closed ticket. But from convesation I get this:
So for this particular xcframework you're binding, I would recommend building the binding project on macOS, and then consuming the NuGet from Windows.
So nuget package that we're consuming now was not build directly from Mac and that's case due symlinks and solution would be to recompile it under Mac and give a try again?
Do you think that I should be able to do it by self or it's something that you can verify?
@jmielczarkowski The libraries are supplied by Mapbox officially. I believe they are built on a Mac.
We will need to dig into further to check.
A snapshot of reported error.
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/17.2.8053/targets/Xamarin.Shared.Sdk.targets(3,3): Error: clang++ exited with code 1:
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_MBXExceptionHandler", referenced from:
objc-class-ref in registrar.o
"_OBJC_CLASS_$__TtC10MapboxMaps10CameraView", referenced from:
objc-class-ref in registrar.o
"_OBJC_CLASS_$__TtC10MapboxMaps14GestureHandler", referenced from:
objc-class-ref in registrar.o
"_OBJC_CLASS_$__TtC10MapboxMaps15AttributionView", referenced from:
objc-class-ref in registrar.o
"_OBJC_CLASS_$__TtC10MapboxMaps15CameraDebugView", referenced from:
objc-class-ref in registrar.o
"_OBJC_CLASS_$__TtC10MapboxMaps16PaddingDebugView", referenced from:
objc-class-ref in registrar.o
"_OBJC_CLASS_$__TtC10MapboxMaps17DistanceFormatter", referenced from:
objc-class-ref in registrar.o
"_OBJC_CLASS_$__TtC10MapboxMaps17PanGestureHandler", referenced from:
objc-class-ref in registrar.o
"_OBJC_CLASS_$__TtC10MapboxMaps17SizeTrackingLayer", referenced from:
objc-class-ref in registrar.o
"_OBJC_CLASS_$__TtC10MapboxMaps18InfoBu (DotnetIOS.MapboxQs)
The linker step 'Registrar' failed during processing
https://github.com/xamarin/xamarin-macios/issues/20148