[mmp] Show an error if trying to build a 32-bit app with Xcode 10. Fixes #4569. (#4684) (#4690)

Fixes https://github.com/xamarin/xamarin-macios/issues/4569.
This commit is contained in:
Rolf Bjarne Kvinge 2018-08-24 16:23:56 +02:00 коммит произвёл GitHub
Родитель 291d428c6d
Коммит bc5400e861
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 20 добавлений и 0 удалений

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

@ -158,6 +158,18 @@ As a last-straw solution, use an older version of Xamarin.Mac that does not requ
<!-- 0136 and 0137 used by mtouch -->
#### MM0138: Building 32-bit apps is not possible when using Xcode 10. Please migrate project to the Unified API.
Xcode 10 does not support building 32-bit applications.
The project must be [migrated to a Unified project](https://docs.microsoft.com/en-us/xamarin/cross-platform/macios/unified/updating-mac-apps) in order to support 64-bit.
#### MM0139: Building 32-bit apps is not possible when using Xcode 10. Please change the architecture in the project's Mac Build options to 'x86_64'.
Xcode 10 does not support building 32-bit applications.
Change the architecture in the project's Mac Build options to 'x86_64' in order to build a 64-bit application.
# MM1xxx: file copy / symlinks (project related)
### <a name="MM1034">MM1034: Could not create symlink '{file}' -> '{target}': error {number}

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

@ -699,6 +699,8 @@ that can't be found.
mtouch may in certain cases still find references at a later point, which
means that if the build otherwise succeeds, this warning can be ignored.
<!-- 0138-0139: used by mmp -->
# MT1xxx: Project related error messages
### MT10xx: Installer / mtouch

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

@ -484,6 +484,12 @@ namespace Xamarin.Bundler {
// InitializeCommon needs SdkVersion set to something valid
ValidateSDKVersion ();
if (action != Action.RunRegistrar && XcodeVersion.Major >= 10 && !Is64Bit) {
if (IsClassic)
throw ErrorHelper.CreateError (138, "Building 32-bit apps is not possible when using Xcode 10. Please migrate project to the Unified API.");
throw ErrorHelper.CreateError (139, "Building 32-bit apps is not possible when using Xcode 10. Please change the architecture in the project's Mac Build options to 'x86_64'.");
}
// InitializeCommon needs the current profile
if (IsClassic)
Profile.Current = new MonoMacProfile ();