Why is Microsoft.CSharp.dll not signed using VS Mac?

Marc George 171 Reputation points
2023-03-30T13:48:17.7333333+00:00

If building a solution targeting an iPhone directly on a Mac or remotely via the Mac from a PC, the following errors are encountered. However, building the same code directly to the iPhone, it succeeds. Both VS's are latest versions with latest updates. Why is codesign not working?

/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/16.2.1040/tools/msbuild/iOS/Xamarin.Shared.targets(3,3): Error: /usr/bin/codesign exited with code 1:
/Volumes/Mac HD - Data/Projects/Sentry/Sentry/bin/Debug/net7.0-ios/ios-arm64/Sentry.app: code object is not signed at all
In subcomponent: /Volumes/Mac HD - Data/Projects/Sentry/Sentry/bin/Debug/net7.0-ios/ios-arm64/Sentry.app/Microsoft.CSharp.dll (Sentry)

/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/16.2.1040/tools/msbuild/iOS/Xamarin.Shared.targets(3,3): Error: Failed to codesign '/Volumes/Mac HD - Data/Projects/Sentry/Sentry/bin/Debug/net7.0-ios/ios-arm64/Sentry.app': /Volumes/Mac HD - Data/Projects/Sentry/Sentry/bin/Debug/net7.0-ios/ios-arm64/Sentry.app: code object is not signed at all
In subcomponent: /Volumes/Mac HD - Data/Projects/Sentry/Sentry/bin/Debug/net7.0-ios/ios-arm64/Sentry.app/Microsoft.CSharp.dll

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,698 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,977 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,383 questions
{count} vote