Open Happypig375 opened 4 years ago
@Happypig375 Thank you for your feedback!
This is a great suggestion, our error messages could be better.
We've marked this as an enhancement for Xamarin.iOS and Xamarin.Mac in the future. However, this does not necessarily mean we will take actions on it as we still need to discuss its feasibility internally and make sure it is not conflicting with other features.
FYI for the future, we can do better but the specificity of our error message is somewhat limited: man codesign -> codesign exits 0 if all operations succeed. This indicates that all codes were signed, or all codes verified properly as requested. If a signing or verification operation fails, the exit code is 1. Exit code 2 indicates invalid arguments or parameters. Exit code 3 indicates that during verification, all path(s) were properly signed but at least one of them failed to satisfy the requirement specified with the -R option.
Normal .NET developers using cross-platform technology should not know about the exit codes of an Apple-only program. Here is an error message that is better: A signing or verification operation has failed. This may indicate that the certificate 'certname' has been revoked or expired. Please check Keychain Access on the connected Mac.
Steps to Reproduce
The provisioning profile clearly existed on the Mac, and the error should point out that the provisioning profile ‘profname’ might have been revoked or expired.
Environment
Build Logs
From the "Xamarin" output,
The error message should also be updated here.
Example Project (If Possible)
N/A
Corresponding Developer Community problem
https://developercommunity.visualstudio.com/content/problem/1062566/show-specific-error-messages-for-xamarinios-archiv.html