Skip to content

Commit

Permalink
[msbuild] Fix null check when validating Hot Restart app identifier (x…
Browse files Browse the repository at this point in the history
…amarin#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
xamarin@36af029#diff-ff4502eb16b65dc59bb7de2bf980024260e83d7b97fef727c9c033374f2b3533R106.
  • Loading branch information
emaf authored and ivanpovazan committed Jul 26, 2023
1 parent 3f005a2 commit d228990
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public override bool Execute ()

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);
return false;
}
Expand Down

0 comments on commit d228990

Please sign in to comment.