[mtouch/mmp] Add better diagnostics if xcrun returns invalid data. (#8166)

This commit is contained in:
Rolf Bjarne Kvinge 2020-03-23 12:29:23 +01:00 коммит произвёл GitHub
Родитель 9f1ecfa85f
Коммит 3a30097d3a
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
16 изменённых файлов: 106 добавлений и 0 удалений

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

@ -1034,6 +1034,10 @@ namespace Xamarin.Bundler {
if (ret == 0) { if (ret == 0) {
path = stdout.ToString ().Trim (); path = stdout.ToString ().Trim ();
if (!File.Exists (path)) {
ErrorHelper.Warning (5315, Errors.MX5315 /* The tool xcrun failed to return a valid result (the file {0} does not exist). Check build log for details. */, tool, path);
return false;
}
} else { } else {
Log (1, "Failed to locate the developer tool '{0}', 'xcrun {1}' returned with the exit code {2}:\n{3}", tool, string.Join (" ", args), ret, both.ToString ()); Log (1, "Failed to locate the developer tool '{0}', 'xcrun {1}' returned with the exit code {2}:\n{3}", tool, string.Join (" ", args), ret, both.ToString ());
} }

6
tools/mtouch/errors.Designer.cs сгенерированный
Просмотреть файл

@ -2327,6 +2327,12 @@ namespace Xamarin.Bundler {
} }
} }
internal static string MX5315 {
get {
return ResourceManager.GetString("MX5315", resourceCulture);
}
}
internal static string MT8018 { internal static string MT8018 {
get { get {
return ResourceManager.GetString("MT8018", resourceCulture); return ResourceManager.GetString("MT8018", resourceCulture);

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

@ -2680,6 +2680,11 @@
</comment> </comment>
</data> </data>
<data name="MX5315" xml:space="preserve">
<value>The tool xcrun failed to find result when looking for the tool '{0}' (the file '{1}' does not exist). Check build log for details.
</value>
</data>
<data name="MT8018" xml:space="preserve"> <data name="MT8018" xml:space="preserve">
<value>Internal consistency error. Please file a bug report at https://github.com/xamarin/xamarin-macios/issues/new. <value>Internal consistency error. Please file a bug report at https://github.com/xamarin/xamarin-macios/issues/new.
</value> </value>

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

@ -3042,6 +3042,13 @@
<note> <note>
</note> </note>
</trans-unit> </trans-unit>
<trans-unit id="MX5315">
<source>The tool xcrun failed to find result when looking for the tool '{0}' (the file '{1}' does not exist). Check build log for details.
</source>
<target state="new">The tool xcrun failed to find result when looking for the tool '{0}' (the file '{1}' does not exist). Check build log for details.
</target>
<note></note>
</trans-unit>
<trans-unit id="default"> <trans-unit id="default">
<source>The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</source> <source>The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</source>
<target state="new">The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</target> <target state="new">The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</target>

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

@ -3042,6 +3042,13 @@
<note> <note>
</note> </note>
</trans-unit> </trans-unit>
<trans-unit id="MX5315">
<source>The tool xcrun failed to find result when looking for the tool '{0}' (the file '{1}' does not exist). Check build log for details.
</source>
<target state="new">The tool xcrun failed to find result when looking for the tool '{0}' (the file '{1}' does not exist). Check build log for details.
</target>
<note></note>
</trans-unit>
<trans-unit id="default"> <trans-unit id="default">
<source>The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</source> <source>The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</source>
<target state="new">The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</target> <target state="new">The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</target>

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

@ -3042,6 +3042,13 @@
<note> <note>
</note> </note>
</trans-unit> </trans-unit>
<trans-unit id="MX5315">
<source>The tool xcrun failed to find result when looking for the tool '{0}' (the file '{1}' does not exist). Check build log for details.
</source>
<target state="new">The tool xcrun failed to find result when looking for the tool '{0}' (the file '{1}' does not exist). Check build log for details.
</target>
<note></note>
</trans-unit>
<trans-unit id="default"> <trans-unit id="default">
<source>The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</source> <source>The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</source>
<target state="new">The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</target> <target state="new">The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</target>

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

@ -3042,6 +3042,13 @@
<note> <note>
</note> </note>
</trans-unit> </trans-unit>
<trans-unit id="MX5315">
<source>The tool xcrun failed to find result when looking for the tool '{0}' (the file '{1}' does not exist). Check build log for details.
</source>
<target state="new">The tool xcrun failed to find result when looking for the tool '{0}' (the file '{1}' does not exist). Check build log for details.
</target>
<note></note>
</trans-unit>
<trans-unit id="default"> <trans-unit id="default">
<source>The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</source> <source>The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</source>
<target state="new">The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</target> <target state="new">The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</target>

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

@ -3042,6 +3042,13 @@
<note> <note>
</note> </note>
</trans-unit> </trans-unit>
<trans-unit id="MX5315">
<source>The tool xcrun failed to find result when looking for the tool '{0}' (the file '{1}' does not exist). Check build log for details.
</source>
<target state="new">The tool xcrun failed to find result when looking for the tool '{0}' (the file '{1}' does not exist). Check build log for details.
</target>
<note></note>
</trans-unit>
<trans-unit id="default"> <trans-unit id="default">
<source>The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</source> <source>The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</source>
<target state="new">The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</target> <target state="new">The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</target>

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

@ -3042,6 +3042,13 @@
<note> <note>
</note> </note>
</trans-unit> </trans-unit>
<trans-unit id="MX5315">
<source>The tool xcrun failed to find result when looking for the tool '{0}' (the file '{1}' does not exist). Check build log for details.
</source>
<target state="new">The tool xcrun failed to find result when looking for the tool '{0}' (the file '{1}' does not exist). Check build log for details.
</target>
<note></note>
</trans-unit>
<trans-unit id="default"> <trans-unit id="default">
<source>The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</source> <source>The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</source>
<target state="new">The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</target> <target state="new">The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</target>

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

@ -3042,6 +3042,13 @@
<note> <note>
</note> </note>
</trans-unit> </trans-unit>
<trans-unit id="MX5315">
<source>The tool xcrun failed to find result when looking for the tool '{0}' (the file '{1}' does not exist). Check build log for details.
</source>
<target state="new">The tool xcrun failed to find result when looking for the tool '{0}' (the file '{1}' does not exist). Check build log for details.
</target>
<note></note>
</trans-unit>
<trans-unit id="default"> <trans-unit id="default">
<source>The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</source> <source>The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</source>
<target state="new">The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</target> <target state="new">The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</target>

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

@ -3042,6 +3042,13 @@
<note> <note>
</note> </note>
</trans-unit> </trans-unit>
<trans-unit id="MX5315">
<source>The tool xcrun failed to find result when looking for the tool '{0}' (the file '{1}' does not exist). Check build log for details.
</source>
<target state="new">The tool xcrun failed to find result when looking for the tool '{0}' (the file '{1}' does not exist). Check build log for details.
</target>
<note></note>
</trans-unit>
<trans-unit id="default"> <trans-unit id="default">
<source>The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</source> <source>The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</source>
<target state="new">The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</target> <target state="new">The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</target>

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

@ -3042,6 +3042,13 @@
<note> <note>
</note> </note>
</trans-unit> </trans-unit>
<trans-unit id="MX5315">
<source>The tool xcrun failed to find result when looking for the tool '{0}' (the file '{1}' does not exist). Check build log for details.
</source>
<target state="new">The tool xcrun failed to find result when looking for the tool '{0}' (the file '{1}' does not exist). Check build log for details.
</target>
<note></note>
</trans-unit>
<trans-unit id="default"> <trans-unit id="default">
<source>The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</source> <source>The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</source>
<target state="new">The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</target> <target state="new">The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</target>

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

@ -3042,6 +3042,13 @@
<note> <note>
</note> </note>
</trans-unit> </trans-unit>
<trans-unit id="MX5315">
<source>The tool xcrun failed to find result when looking for the tool '{0}' (the file '{1}' does not exist). Check build log for details.
</source>
<target state="new">The tool xcrun failed to find result when looking for the tool '{0}' (the file '{1}' does not exist). Check build log for details.
</target>
<note></note>
</trans-unit>
<trans-unit id="default"> <trans-unit id="default">
<source>The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</source> <source>The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</source>
<target state="new">The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</target> <target state="new">The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</target>

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

@ -3042,6 +3042,13 @@
<note> <note>
</note> </note>
</trans-unit> </trans-unit>
<trans-unit id="MX5315">
<source>The tool xcrun failed to find result when looking for the tool '{0}' (the file '{1}' does not exist). Check build log for details.
</source>
<target state="new">The tool xcrun failed to find result when looking for the tool '{0}' (the file '{1}' does not exist). Check build log for details.
</target>
<note></note>
</trans-unit>
<trans-unit id="default"> <trans-unit id="default">
<source>The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</source> <source>The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</source>
<target state="new">The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</target> <target state="new">The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</target>

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

@ -3042,6 +3042,13 @@
<note> <note>
</note> </note>
</trans-unit> </trans-unit>
<trans-unit id="MX5315">
<source>The tool xcrun failed to find result when looking for the tool '{0}' (the file '{1}' does not exist). Check build log for details.
</source>
<target state="new">The tool xcrun failed to find result when looking for the tool '{0}' (the file '{1}' does not exist). Check build log for details.
</target>
<note></note>
</trans-unit>
<trans-unit id="default"> <trans-unit id="default">
<source>The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</source> <source>The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</source>
<target state="new">The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</target> <target state="new">The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</target>

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

@ -3042,6 +3042,13 @@
<note> <note>
</note> </note>
</trans-unit> </trans-unit>
<trans-unit id="MX5315">
<source>The tool xcrun failed to find result when looking for the tool '{0}' (the file '{1}' does not exist). Check build log for details.
</source>
<target state="new">The tool xcrun failed to find result when looking for the tool '{0}' (the file '{1}' does not exist). Check build log for details.
</target>
<note></note>
</trans-unit>
<trans-unit id="default"> <trans-unit id="default">
<source>The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</source> <source>The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</source>
<target state="new">The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</target> <target state="new">The error message for code {0} could not be found. Please report this missing message on GitHub at https://github.com/xamarin/xamarin-macios/issues/new</target>