[tools] Don't register any AssetsLibrary classes, the framework is deprecated and will be removed.

This commit is contained in:
Rolf Bjarne Kvinge 2024-06-10 22:51:55 +02:00
Родитель fe7a7708c4
Коммит c2845a5226
3 изменённых файлов: 20 добавлений и 0 удалений

Просмотреть файл

@ -2903,6 +2903,13 @@ namespace Registrar {
}
}
if (Driver.XcodeVersion.Major >= 16) {
if (@class.Type.Namespace == "AssetsLibrary") {
exceptions.Add (ErrorHelper.CreateWarning (4190, $"The class '{@class.Type.FullName}' will not be registered because the {@class.Type.Namespace} framework has been deprecated from the {App.Platform} SDK."));
continue;
}
}
if (@class.IsFakeProtocol)
continue;

9
tools/mtouch/Errors.designer.cs сгенерированный
Просмотреть файл

@ -3034,6 +3034,15 @@ namespace Xamarin.Bundler {
}
}
/// <summary>
/// Looks up a localized string similar to The class &apos;{0}&apos; will not be registered because the {1} framework has been deprecated from the {2} SDK..
/// </summary>
public static string MT4190 {
get {
return ResourceManager.GetString("MT4190", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Missing &apos;{0}&apos; compiler. Please install Xcode &apos;Command-Line Tools&apos; component
/// .

Просмотреть файл

@ -1924,6 +1924,10 @@
<value>The class '{0}' will not be registered because it has been removed from the {1} SDK.</value>
</data>
<data name="MT4190" xml:space="preserve">
<value>The class '{0}' will not be registered because the {1} framework has been deprecated from the {2} SDK.</value>
</data>
<data name="MT5101" xml:space="preserve">
<value>Missing '{0}' compiler. Please install Xcode 'Command-Line Tools' component
</value>