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

Marc George
191
Reputation points
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
4,152 questions
Developer technologies | Visual Studio | Other
5,451 questions
Developer technologies | C#
11,570 questions
Sign in to answer