[msbuild] Fix null check when validating Hot Restart app identifier (#18546)

The detection of signing identities should fail if we could not build a
valid app id. This code originally checked for null (`AppId == null`)
and was replaced by `is not null` as part of
36af029204 (diff-ff4502eb16b65dc59bb7de2bf980024260e83d7b97fef727c9c033374f2b3533R106).
This commit is contained in:
Emanuel Fernandez Dell'Oca 2023-07-10 18:36:37 -04:00 коммит произвёл GitHub
Родитель ed13befa6d
Коммит e7b7d168ec
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -103,7 +103,7 @@ namespace Xamarin.iOS.HotRestart.Tasks {
identity.AppId = ConstructValidAppId (identity.Profile, identity.BundleId); identity.AppId = ConstructValidAppId (identity.Profile, identity.BundleId);
if (identity.AppId is not null) { if (identity.AppId is null) {
Log.LogError ("Project bundle identifier '{0}' does not match specified provisioning profile '{1}'. Please enable Automatic Provisioning from the iOS Bundle Signing page.", identity.BundleId, ProvisioningProfile); Log.LogError ("Project bundle identifier '{0}' does not match specified provisioning profile '{1}'. Please enable Automatic Provisioning from the iOS Bundle Signing page.", identity.BundleId, ProvisioningProfile);
return false; return false;
} }