.NET 8 Question

1 Answer 218 Views
General Discussions
Angelica
Top achievements
Rank 1
Iron
Angelica asked on 19 Oct 2023, 04:16 PM | edited on 19 Oct 2023, 04:16 PM

I created a brand new .NET 8 (.NET MAUI) project and I was able to deploy to iOS successfully, when I installed the Telerik.UI.for.MAUI nuget package (version 6.3.0) I keep getting the following errors:

Xamarin.Messaging.IDB.Local.DeployAppMessageHandler Error: 0 : An error occurred while trying to deploy the app 'NewPreview.app'. Details: Could not install the application 'C:\Users\salmohtasib\AppData\Local\Temp\Xamarin\HotRestart\Signing\NewPreview.app\out\NewPreview.ipa' on the device 12028’s iPhone. Details: ApplicationVerificationFailed|0xE8008014 - Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.mW1lmq/extracted/Payload/NewPreview.app/Frameworks/libSkiaSharp.framework : 0xe8008014 (The executable contains an invalid signature.)

Xamarin.iOS.Windows.WindowsiOSException: Could not install the application 'C:\Users\salmohtasib\AppData\Local\Temp\Xamarin\HotRestart\Signing\NewPreview.app\out\NewPreview.ipa' on the device 12028’s iPhone. Details: ApplicationVerificationFailed|0xE8008014 - Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.mW1lmq/extracted/Payload/NewPreview.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/19/2023 00:42:53Z

It looks like it's an issue with libSkiaSharp. 

This is my .NET version 8.0.100-rc.2.23502.2

.NET MAUI version  8.0.0-rc.2.9373/8.0.100-rc.2         SDK 8.0.100-rc.2

Visual Studio Version 17.8.0 Preview 4.0

Any help is appreciated, thank you! 


1 Answer, 1 is accepted

Sort by
0
Lance | Senior Manager Technical Support
Telerik team
answered on 19 Oct 2023, 06:12 PM

Hello Angelica,

The reason for the error is because we do not support Hot Restart (Hot Restart is when you deploy to an iPhone directly from a Windows PC). You can find the feature request and the technical reason for that here => Support for Hot Restart feature (telerik.com)

If you change the deployment target to an iOS remote device (a simulator or iPhone plugged into a Mac), it will work. Alternatively, use the Android emulator or Windows target if you do not have Mac handy

 

Outside of that immediate problem, you're also trying to use an unsupported preview SDK... .NET 8 RC2. We have not released support for the preview SDK .NET 8 RC2 yet. So, to get things up and running change the TFM to net7.0-mytarget (don't worry, there is zero difference by changing your TFM to be net7.0 instead of .NET 8 RC2).

We will include support for .NET 8 when it is released by Microsoft. This is planned for late November, and soon afterwards, we will have assemblies supported for .NET 8 release.

Regards,
Lance | Manager Technical Support
Progress Telerik

A brand new .NET MAUI course was just added to the Virtual Classroom. The training course is developed to help you get started with the Telerik UI for .NET MAUI components and features. It aims to put you in the shoes of an engineer who adds new features to an existing application. You can check it out at https://learn.telerik.com
Tags
General Discussions
Asked by
Angelica
Top achievements
Rank 1
Iron
Answers by
Lance | Senior Manager Technical Support
Telerik team
Share this question
or