mauimaui-ios

.net maui clang++ exited with code 1 ld:framework not found system


I recently updated to the latest macos and xcode (14.3) and it's broke my .net build on ios (for the second time). I've made sure to set the SDK location in Visual Preferences > SDK Locations > Apple and confirmed this in the terminal xcode-select -p

Finally, I've tried creating a new maui project, which works, so I've incrementally added all the libraries the not-working project uses and it still works... WHY

I just keep getting the error:

clang++ exited with code 1:
ld:framework not found System
clang: error: linker command failed with exit code 1

Solution

  • Adding Microsoft.Identity.Client.Extensions.Msal fixed it.

    EVEN THOUGH I WASN'T USING THE LIBRARY??