Deploying MAUI app on iOS Device throws error : ASN1 corrupted data.
Description
I am trying to deploy my MAUI app (.Net7) on iPhone (iOS 17.4) but it throws error : ASN1 corrupted data. Even with a blank new app the same issue occurs. When I try to deploy the Xamarin app using the same provisioning profile it works fine. This issue started occurring when I updated the Visual Studio for Mac to 17.6.10. I was able to deploy MAUI app before the update.
Steps to Reproduce
- Create a blank MAUI app
- Try to run it on iPhone
Link to public reproduction project repository
No response
Version with bug
7.0.101
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
7.0.101
Affected platforms
iOS
Affected platform versions
17.4
Did you find any workaround?
No response
Relevant log output
Target ProcessMauiSplashScreens:
Skipping target "ProcessMauiSplashScreens" because all output files are up-to-date with respect to the input files.
Target ResizetizeImages:
Skipping target "ResizetizeImages" because all output files are up-to-date with respect to the input files.
Target ProcessMauiFonts:
Skipping target "ProcessMauiFonts" because all output files are up-to-date with respect to the input files.
Target _DetectDebugNetworkConfiguration:
DebugIPAddresses: <null>
Target _BeforeCoreCompileImageAssets:
Directory "obj/Debug/net7.0-ios/ios-arm64/actool" doesn't exist. Skipping.
Target _DetectSigningIdentity:
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/16.4.7141/tools/msbuild/iOS/Xamarin.Shared.targets(1725,3): error : ASN1 corrupted data.
Done building target "_DetectSigningIdentity" in project "MAUI_With_UI.csproj" -- FAILED.
Done building project "MAUI_With_UI.csproj" -- FAILED.
Build FAILED.
/usr/local/share/dotnet/packs/Microsoft.iOS.Sdk/16.4.7141/tools/msbuild/iOS/Xamarin.Shared.targets(1725,3): error : ASN1 corrupted data.
0 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.39
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Build: 1 error, 0 warnings
@ot-ashish-jain Did you encounter the same problem on iOS 17.4 simulator?
@ot-ashish-jain Did you encounter the same problem on iOS 17.4 simulator?
I am able to run the app on iOS 17.4 simulator, but I face this crash issue on simulator.
reproduction project
I am using Visual Studio for Mac 2022 (17.6.10), can you try to reproduce on that?
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 95.13%. Comparing base (
5522037) to head (cefc420). Report is 15 commits behind head on master.
Additional details and impacted files
@@ Coverage Diff @@
## master #1577 +/- ##
==========================================
+ Coverage 94.54% 95.13% +0.58%
==========================================
Files 28 28
Lines 5848 7642 +1794
Branches 1166 1746 +580
==========================================
+ Hits 5529 7270 +1741
- Misses 193 218 +25
- Partials 126 154 +28
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Can't repro this issue at iOS device(iOS17.4.1) on the latest 17.6.10(build 428)(.NET SDK:7.0.314).
Could you also try using .NET 8? Also, could you try deploying a .NET iOS App that doesn't implement that MAUI UI Framework? You can do that by running dotnet new ios from the command line. I have a feeling you'll have a similar issue with deploying any .NET iOS app, not just one from the MAUI Template.
Can't repro this issue at iOS device(iOS17.4.1) on the latest 17.6.10(build 428)(.NET SDK:7.0.314).
Could you please mention the MacOS version as well? I am using MacOS Sonoma 14.4.1.
Can't repro this issue at iOS device(iOS17.4.1) on the latest 17.6.10(build 428)(.NET SDK:7.0.314).
Could you please mention the MacOS version as well? I am using MacOS Sonoma 14.4.1.
Sonoma 14.4.
Could you also try using .NET 8? Also, could you try deploying a .NET iOS App that doesn't implement that MAUI UI Framework? You can do that by running
dotnet new iosfrom the command line. I have a feeling you'll have a similar issue with deploying any .NET iOS app, not just one from the MAUI Template.
Tried the .NET iOS app, same issue.
Could you also try using .NET 8? Also, could you try deploying a .NET iOS App that doesn't implement that MAUI UI Framework? You can do that by running
dotnet new iosfrom the command line. I have a feeling you'll have a similar issue with deploying any .NET iOS app, not just one from the MAUI Template.
Tried .NET 8 as well, same issue.
I tried to deploy using Windows machine and I was able to run the app on iPhone. When I use the same Developer certificate and provisioning profile on Mac I get ASN1 corrupted data issue. I have tried this on three different Mac systems and I get the same issue.
Any update on this?
