skip to Main Content

I’m using VS code for MAUI application. VS code Version: 1.93.1 .
Xcode Version 16.0. There is no issue with the code. Facing iOS SDK issues.

I’m facing the below error.

/usr/local/share/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: [/Users/#####/Documents/###-dfp-###-mobile-maui/src/####/###.csproj::TargetFramework=net8.0-ios]
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk.net8.0_17.5/17.5.8030/targets/Xamarin.Shared.Sdk.targets(1641,3): error : ld: in /Users/####/Documents/####-dfp-####-mobile-maui/src/####/obj/Debug/net8.0-ios/iossimulator-arm64/linker-cache/AppCenterCrashes.a(MSACErrorReport.o), building for iOS Simulator, but linking in object file built for iOS, file '/Users/####/Documents/####-dfp-####-mobile-maui/src/####/obj/Debug/net8.0-ios/iossimulator-arm64/linker-cache/AppCenterCrashes.a' [/Users/####/Documents/####-dfp-####-mobile-maui/src/####/####.csproj::TargetFramework=net8.0-ios]
/usr/local/share/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) [/Users/####/Documents/####-dfp-####-mobile-maui/src/####/####.csproj::TargetFramework=net8.0-ios]
    0 Warning(s)
    1 Error(s)

Please help me to resolve this issue.

2

Answers


  1. Are you building on Apple silicon (M1) and reference a dependency that doesn’t support iossimulator-arm64? This might help:

    <PropertyGroup>
      <RuntimeIdentifier>iossimulator-x64</RuntimeIdentifier>
    </PropertyGroup>
    

    See alo https://github.com/microsoft/vscode-dotnettools/issues/744

    Login or Signup to reply.
  2. Check please this.
    Your problem is expected here

    https://github.com/dotnet/maui/issues/24819

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search