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

Marc George 191 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

Developer technologies | .NET | .NET MAUI
Developer technologies | Visual Studio | Other
Developer technologies | C#
{count} vote

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.