You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[msbuild] Sign simulator apps by default. Fixes#18469.
When building for the simulator:
* Signing is enabled by default.
* Any entitlements the app requests will be embedded in the native executable in
an `__ents_der` Mach-O section.
* The actual app signature only demands the "com.apple.security.get-task-allow"
entitlement.
* No provisioning profiles are used.
Also:
* Unify the code to detect signing identity, so that it's as equal as possible
between our platforms.
Fixes#18469.
Log.LogMessage(MessageImportance.Low,"The item '{0}' contains '{1}', which must be signed, which means that the item must be signed too.",item.ItemSpec,sortedItems[i].ItemSpec);
Log.LogMessage(MessageImportance.Low,"The item '{0}' contains '{1}', which must be signed, which means that the item must be signed too.",item.ItemSpec,sortedItem.ItemSpec);
157
161
returntrue;// there's an item inside this directory that needs to be signed, so this directory must be signed too
158
162
}
159
163
}
@@ -416,17 +420,22 @@ bool ExecuteUnsafe ()
416
420
}
417
421
418
422
// first sort all the items by path length, longest path first.
Log.LogWarning(null,null,null,Entitlements,0,0,0,0,MSBStrings.W0108b/* Cannot expand $(TeamIdentifierPrefix) in Entitlements.plist without a provisioning profile for key '{0}' with value '{1}' */,key,pstr.Value);
151
167
warnedTeamIdentifierPrefix=true;
@@ -455,7 +471,7 @@ public override bool Execute ()
455
471
MobileProvision?profile;
456
472
PDictionarytemplate;
457
473
PDictionarycompiled;
458
-
PDictionaryarchived;
474
+
PDictionary?archived=null;
459
475
stringpath;
460
476
461
477
switch(SdkPlatform){
@@ -507,34 +523,50 @@ public override bool Execute ()
/* The path to the entitlements must be resolved to the full path, because we might want to reference it from a containing project that just references this project,
527
+
* and in that case it becomes a bit complicated to resolve to a full path on disk when building remotely from Windows. Instead just resolve to a full path here,
528
+
* and use that from now on. This has to be done from a task, so that we get the full path on the mac when executed remotely from Windows. */
/* The path to the entitlements must be resolved to the full path, because we might want to reference it from a containing project that just references this project,
525
-
* and in that case it becomes a bit complicated to resolve to a full path on disk when building remotely from Windows. Instead just resolve to a full path here,
526
-
* and use that from now on. This has to be done from a task, so that we get the full path on the mac when executed remotely from Windows. */
0 commit comments