How to fix linker error for System framework not found?

Mr. Dragon 0 Reputation points
2024-09-24T16:48:56.6166667+00:00

I am trying to publish my .Net 8.0 Maui application to the iOS app store. When I run this command to remotely build this archive on my Mac:


I get this error: 

```(_LinkNativeExecutable target) ->C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_17.5\17.5.8030\targets\Xamarin.Shared.Sdk.targets(1641,3): error : clang++ exited with code 1: [G:\testapp\testapp.csproj::TargetFramework=net8.0-ios]
       C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_17.5\17.5.8030\targets\Xamarin.Shared.Sdk.targets(1641,3): error : ld: framework not found System [G:\testapp\testapp.csproj::TargetFramework=net8.0-ios]
       C:\Program Files\dotnet\packs\Microsoft.iOS.Sdk.net8.0_17.5\17.5.8030\targets\Xamarin.Shared.Sdk.targets(1641,3): error : clang: error: linker command failed with exit code 1 (use -v to see invocation) [G:\testapp\testapp.csproj::TargetFramework=net```
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,493 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.