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
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
}
@@ -402,7 +406,7 @@ bool ExecuteUnsafe ()
402
406
// All this makes it easier to sort and split the input files into buckets that can be codesigned together,
403
407
// while also not codesigning directories before files inside them.
404
408
foreach(varresinresourcesToSign){
405
-
varpath=res.ItemSpec;
409
+
varpath=res!.ItemSpec;
406
410
varparent=Path.GetDirectoryName(path);
407
411
408
412
// so do not don't sign `A.framework/A`, sign `A.framework` which will always sign the *bundle*
@@ -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){
@@ -509,7 +525,26 @@ public override bool Execute ()
@@ -519,22 +554,10 @@ public override bool Execute ()
519
554
returnfalse;
520
555
}
521
556
522
-
SaveArchivedExpandedEntitlements(archived);
523
-
524
-
/* 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. */
Copy file name to clipboardExpand all lines: msbuild/Xamarin.Shared/Xamarin.Shared.props
+3-5
Original file line number
Diff line number
Diff line change
@@ -135,14 +135,12 @@ Copyright (C) 2020 Microsoft. All rights reserved.
135
135
</PropertyGroup>
136
136
137
137
<!-- RequireCodeSigning -->
138
-
<!-- iOS/watchOS/tvOS is simple: device builds require code signing, simulator builds do not. This is a big lie, for some simulator builds need to be signed, but the _DetectCodeSigning task handles those cases.-->
138
+
<!-- iOS/watchOS/tvOS is simple: device builds require code signing, simulator builds technically don't even though some important features won't work unless the app is signed (launch screen won't show for instance)-->
139
139
<PropertyGroupCondition="'$(_PlatformName)' != 'macOS' And '$(_PlatformName)' != 'MacCatalyst'">
140
140
<!-- Make it possible to override the default logic by setting EnableCodeSigning -->
<!-- Device builds must be signed, and some features won't work in the simulator if the app isn't signed (launch screen for instance), so default to always sign -->
<!-- warning CA1422: This call site is reachable on: '...': we use APIs that aren't available on a certain OS platform all the time (in some cases to verify any broken behavior), so ignore such warnings -->
0 commit comments