tuyen-vuduc / dotnet-mapbox-quickstart

Mapbox quick-start and examples for .NET
MIT License
3 stars 1 forks source link

.NET MAUI sample app not compiled well on .NET 8 #5

Open tuyen-vuduc opened 7 months ago

tuyen-vuduc commented 7 months ago

The linker step 'Registrar' failed during processing

1>C:\Program Files\dotnet\packs\Microsoft.iOS.Windows.Sdk\17.2.8004\tools\msbuild\iOS\Xamarin.iOS.Common.After.targets(364,3): error IL7000: An error occured while executing the custom linker steps. Please review the build log for more information.
1>C:\Program Files\dotnet\packs\Microsoft.iOS.Windows.Sdk\17.2.8004\tools\msbuild\iOS\Xamarin.iOS.Common.After.targets(364,3): error MT2362: The linker step 'Registrar' failed during processing: Object reference not set to an instance of an object.
1>C:\Program Files\dotnet\packs\Microsoft.iOS.Windows.Sdk\17.2.8004\tools\msbuild\iOS\Xamarin.iOS.Common.After.targets(406,3): error MSB3371: The file "obj\Debug\net8.0-ios\ios-arm64\linked\Link.semaphore" cannot be created. Could not find a part of the path 'dotnet-mapbox-quickstart\src\quickstart\DotnetMaui.MapboxQs\obj\Debug\net8.0-ios\ios-arm64\linked\Link.semaphore'.

https://github.com/xamarin/xamarin-macios/issues/20148

jmielczarkowski commented 5 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?

tuyen-vuduc commented 5 months ago

@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.

tuyen-vuduc commented 4 months ago

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)