[regression/8.0.0] SkiaSharp signature check fails for deployment (Visual Studio local iOS device) · Issue #19278 · dotnet/macios (original) (raw)
From @espenrl on Tue, 10 Oct 2023 13:52:22 GMT
Description
This happens when deploying a dotnet new maui
app with package refrences to SkiaSharp
. It works on .NET 7 and is a regression for .NET 8.
Xamarin.Messaging.IDB.Local.DeployAppMessageHandler Error: 0 : An error occurred while trying to deploy the app 'net8test.app'. Details: Could not install the application '<redacted>\AppData\Local\Temp\Xamarin\HotRestart\Signing\net8test.app\out\net8test.ipa' on the device <redacted>. Details: ApplicationVerificationFailed|0xE8008014 - Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.Pc97q0/extracted/Payload/net8test.app/Frameworks/libSkiaSharp.framework : 0xe8008014 (The executable contains an invalid signature.)
Xamarin.iOS.Windows.WindowsiOSException: Could not install the application '<redacted>\AppData\Local\Temp\Xamarin\HotRestart\Signing\net8test.app\out\net8test.ipa' on the device <redacted>. Details: ApplicationVerificationFailed|0xE8008014 - Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.Pc97q0/extracted/Payload/net8test.app/Frameworks/libSkiaSharp.framework : 0xe8008014 (The executable contains an invalid signature.)
at Xamarin.iOS.Windows.Installer.ApplicationSession.InstallApp(String appPath, String appBundleId) in D:\a\_work\1\s\src\Tools\Xamarin.iOS.Windows.Client\Installer\ApplicationSession.cs:line 276
at Xamarin.iOS.Windows.Installer.ApplicationSession.Deploy(String appRootFolder, String appBundleId, String appName) in D:\a\_work\1\s\src\Tools\Xamarin.iOS.Windows.Client\Installer\ApplicationSession.cs:line 95
at Xamarin.iOS.Windows.HotRestartClient.Deploy(AppleDevice nativeDevice, String appBundleId, String appBundleName, Boolean& incremental) in D:\a\_work\1\s\src\Tools\Xamarin.iOS.Windows.Client\HotRestartClient.cs:line 250
at Xamarin.Messaging.IDB.Local.DeployAppMessageHandler.<ExecuteAsync>d__5.MoveNext() in D:\a\_work\1\s\src\Messaging\Xamarin.Messaging.IDB.Local\Handlers\DeployAppMessageHandler.cs:line 43: 10.10.2023 13:40:53Z
DateTime=2023-10-10T13:40:53.6841338Z: 10.10.2023 13:40:53Z
Steps to Reproduce
No response
Link to public reproduction project repository
https://github.com/espenrl/issue-repro/tree/main/net8-skiasharp
Version with bug
8.0.0-rc.1.9171
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
7.0.49
Affected platforms
iOS
Affected platform versions
iOS 16
Did you find any workaround?
No response
Relevant log output
No response
Copied from original issue dotnet/maui#17930