I am developing a Maui application I can easily deploy on Android, it works well, but when I try to deploy to a local iPhone I got the following errors:
2024-05-20 12:22:51.797 Xamarin.PreBuilt.iOS[9358:17038657] Could not
resolve assembly System.IO.FileSystem.DriveInfo.resources,
Version=8.0.0.0, Culture=hu-HU, PublicKeyToken=null. Details: Could
not load file or assembly
‘/var/mobile/Containers/Data/Application/86FBF40D-9670-476F-9917-1134A5DBB14C/Documents/TrackAndBeast.content/System.IO.FileSystem.DriveInfo.resources.dll’
or one of its dependencies.2024-05-20 12:22:51.798 Xamarin.PreBuilt.iOS[9358:17038657] Could not
resolve assembly System.IO.FileSystem.DriveInfo.resources,
Version=8.0.0.0, Culture=hu, PublicKeyToken=null. Details: Could not
load file or assembly
‘/var/mobile/Containers/Data/Application/86FBF40D-9670-476F-9917-1134A5DBB14C/Documents/TrackAndBeast.content/System.IO.FileSystem.DriveInfo.resources.dll’
or one of its dependencies.2024-05-20 12:22:51.810 Xamarin.PreBuilt.iOS[9358:17038657] Could not
resolve assembly System.Threading.Channels.resources, Version=8.0.0.0,
Culture=hu, PublicKeyToken=null. Details: Could not load file or
assembly
‘/var/mobile/Containers/Data/Application/86FBF40D-9670-476F-9917-1134A5DBB14C/Documents/TrackAndBeast.content/System.Threading.Channels.resources.dll’
or one of its dependencies.2024-05-20 12:22:51.809 Xamarin.PreBuilt.iOS[9358:17038657] Could not
resolve assembly System.Threading.Channels.resources, Version=8.0.0.0,
Culture=hu-HU, PublicKeyToken=null. Details: Could not load file or
assembly
‘/var/mobile/Containers/Data/Application/86FBF40D-9670-476F-9917-1134A5DBB14C/Documents/TrackAndBeast.content/System.Threading.Channels.resources.dll’
or one of its dependencies.2024-05-20 12:22:51.877 Xamarin.PreBuilt.iOS[9358:17038657] Could not
resolve assembly System.Threading.resources, Version=8.0.0.0,
Culture=hu, PublicKeyToken=null. Details: Could not load file or
assembly
‘/var/mobile/Containers/Data/Application/86FBF40D-9670-476F-9917-1134A5DBB14C/Documents/TrackAndBeast.content/System.Threading.resources.dll’
or one of its dependencies.2024-05-20 12:22:51.876 Xamarin.PreBuilt.iOS[9358:17038657] Could not
resolve assembly System.Threading.resources, Version=8.0.0.0,
Culture=hu-HU, PublicKeyToken=null. Details: Could not load file or
assembly
‘/var/mobile/Containers/Data/Application/86FBF40D-9670-476F-9917-1134A5DBB14C/Documents/TrackAndBeast.content/System.Threading.resources.dll’
or one of its dependencies.2024-05-20 12:22:51.945 Xamarin.PreBuilt.iOS[9358:17038657] Could not
resolve assembly Dia2Lib, Version=2.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a. Details: Could not load file or
assembly
‘/var/mobile/Containers/Data/Application/86FBF40D-9670-476F-9917-1134A5DBB14C/Documents/TrackAndBeast.content/Dia2Lib.dll’
or one of its dependencies.2024-05-20 12:22:51.950 Xamarin.PreBuilt.iOS[9358:17038657] Could not
resolve assembly TraceReloggerLib, Version=0.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a. Details: Could not load file or
assembly
‘/var/mobile/Containers/Data/Application/86FBF40D-9670-476F-9917-1134A5DBB14C/Documents/TrackAndBeast.content/TraceReloggerLib.dll’
or one of its dependencies.
These are my supported versions:
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">14.2</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">28.0</SupportedOSPlatformVersion>
TargetFrameworks:
<TargetFrameworks>net8.0-android;net8.0-ios</TargetFrameworks>
I am using 17.9.7 Visual Studio.
I have been trying to resolve, but no luck at all.