-
Notifications
You must be signed in to change notification settings - Fork 520
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error MSB4018: The "DetectSigningIdentity" task failed unexpectedly. #5277
Comments
I'm not sure it's possible to create an exact test case anymore, because:
This all means that the problem can only occur when an existing provisioning profile (which we've already cached) is updated (in a way that the filename does not change - just re-downloading existing profiles didn't seem to generate problematic ones with duplicate keys, so there's something else triggering this on Apple's side). That said, I can reproduce the exception itself locally when trying to cache a provisioning profile with duplicate keys (even though the exception isn't surfaced and doesn't cause a build failure). |
…amarin-macios#5277. Fixes dotnet/macios#5277.
Fix in progress: dotnet/macios-devtools#39 |
…amarin-macios#5277. (#39) Fixes dotnet/macios#5277.
Commit list for xamarin/Xamarin.MacDev: * dotnet/macios-devtools@2029b17 Keys in property list dictionaries aren't necessarily unique. Fixes xamarin-macios#5277. (#39) * dotnet/macios-devtools@80498aa Get rid of spurious <ItemGroup> * dotnet/macios-devtools@9921b48 Remove packagerefs. Leads to unintended problems (see discussion xamarin/md-addins#3946) (#38) * dotnet/macios-devtools@179f720 Add in MicroBuild to all projects for signing (#37) * dotnet/macios-devtools@45e26fc Cache EntitlementExtensions.AllKeys Diff: dotnet/macios-devtools@49a17b1...2029b17
…amarin-macios#5277. (dotnet#39) Fixes dotnet/macios#5277.
…amarin-macios#5277. (dotnet#39) Fixes dotnet/macios#5277.
Reopening since the fix has not yet been bumped into xamarin-macios. |
[VS sync] The field 'Milestone' contains the value '15.9' that is not in the list of supported values |
Commit list for xamarin/Xamarin.MacDev: * dotnet/macios-devtools@2029b17 Keys in property list dictionaries aren't necessarily unique. Fixes xamarin-macios#5277. (#39) * dotnet/macios-devtools@80498aa Get rid of spurious <ItemGroup> * dotnet/macios-devtools@9921b48 Remove packagerefs. Leads to unintended problems (see discussion xamarin/md-addins#3946) (#38) * dotnet/macios-devtools@179f720 Add in MicroBuild to all projects for signing (#37) * dotnet/macios-devtools@45e26fc Cache EntitlementExtensions.AllKeys Diff: dotnet/macios-devtools@49a17b1...2029b17
…amarin-macios#5277. (#39) (#41) Fixes dotnet/macios#5277.
Commit list for xamarin/Xamarin.MacDev: * dotnet/macios-devtools@44e90a2 Keys in property list dictionaries aren't necessarily unique. Fixes xamarin-macios#5277. (#39) (#41) * dotnet/macios-devtools@c81c625 Get rid of spurious <ItemGroup> * dotnet/macios-devtools@d1d3fa4 Remove packagerefs. Leads to unintended problems (see discussion xamarin/md-addins#3946) (#38) Diff: dotnet/macios-devtools@179f720...44e90a2 Fixes #5277.
…amarin-macios#5277. (#39) (#40) Fixes dotnet/macios#5277.
Commit list for xamarin/Xamarin.MacDev: * dotnet/macios-devtools@ba1629e Keys in property list dictionaries aren't necessarily unique. Fixes xamarin-macios#5277. (#39) (#40) * dotnet/macios-devtools@21b7270 Cache EntitlementExtensions.AllKeys * dotnet/macios-devtools@44b2fee Added new Xcode10 Watch Complication values (#34) * dotnet/macios-devtools@e9e1bb1 Merge pull request #36 from xamarin/vsts-702327-d15-9 * dotnet/macios-devtools@e348034 VSTS 702327: Launch image sizes for iPhone XS Max and iPhone XR (#35) * dotnet/macios-devtools@61e811c Use Version.TryParse * dotnet/macios-devtools@62cdeac Added API to get the recommended Xcode version value * dotnet/macios-devtools@3adc4a9 Merge pull request #33 from xamarin/vsts-692176-release-7.7 * dotnet/macios-devtools@25883d4 VSTS-692176: Add missing AutoFill Credential Provider entitlement Diff: dotnet/macios-devtools@39ea45b...ba1629e Fixes #5277.
…amarin-macios#5277. Fixes dotnet/macios#5277.
Commit list for xamarin/Xamarin.MacDev: * dotnet/macios-devtools@9b55404 Keys in property list dictionaries aren't necessarily unique. Fixes xamarin-macios#5277. Diff: dotnet/macios-devtools@39ea45b...9b55404 Fixes #5277.
Bump Xamarin.MacDev to get fix for #5277, and use a custom Xamarin.MacDev branch to only get this commit from Xamarin.MacDev. Commit list for xamarin/Xamarin.MacDev: * dotnet/macios-devtools@9b55404 Keys in property list dictionaries aren't necessarily unique. Fixes xamarin-macios#5277. Diff: dotnet/macios-devtools@39ea45b...9b55404 Fixes #5277.
This error might still happen after the fix:
This is because of how we cache some data for provisioning profiles. This is what happens:
This can be fixed in two ways:
touch ~/Library/MobileDevice/"Provisioning Profiles"
rm -f ~/Library/Xamarin/"Provisioning Profiles.index" |
It seems Apple has fixed the issue on their end, and they're serving provisioning profiles without duplicate keys now. A customer confirmed this here: #5286 (comment), and two customers here as well: https://forums.developer.apple.com/message/343811#343811 I was also able to confirm it:
|
[VS sync] The field 'Milestone' contains the value '16.0' that is not in the list of supported values |
Closing since the fix is already in master, and we won't be backporting to d15-9 (we'll backport to d16-0, but there's no urgency there). |
Commit list for xamarin/Xamarin.MacDev: * dotnet/macios-devtools@44e90a2 Keys in property list dictionaries aren't necessarily unique. Fixes xamarin-macios#5277. (#39) (#41) * dotnet/macios-devtools@c81c625 Get rid of spurious <ItemGroup> * dotnet/macios-devtools@d1d3fa4 Remove packagerefs. Leads to unintended problems (see discussion xamarin/md-addins#3946) (#38) Diff: dotnet/macios-devtools@179f720...44e90a2 Fixes #5277.
Everything was working fine for me. I upgraded my Visual Studio 2022 to the latest version (17.1.3) and now I'm wrestling with this issue! I removed all provisioning profiles and had VS download a fresh one for me but that didn't fix the issue. Here's my SO question: https://stackoverflow.com/questions/71702055/prepareappbundle-task-failed-unexpectedly-xamarin-forms |
There have been multiple reports about a failure in the DetectSigningIdentity task:
Sources:
https://stackoverflow.com/questions/53794998/duplicate-key-in-provisioning-profile-causes-build-failure-error-msb4018
https://forums.xamarin.com/discussion/146770
https://twitter.com/craigajohnson/status/1074031845275099136?s=21
It seems to be an Apple change in how they generate provisioning profiles:
https://forums.developer.apple.com/message/343811#343811
The text was updated successfully, but these errors were encountered: