Skip to content

Commit 3503804

Browse files
kmasuda050uerceg
authored andcommitted
Use CODE_SIGN_ENTITLEMENTS value if the value exists.
1 parent 21fcef5 commit 3503804

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Assets/Adjust/Scripts/Editor/AdjustEditor.cs

+5-1
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,11 @@ private static PlistElementDict CreatePlistElementDict(PlistElementArray rootArr
310310

311311
private static void AddUniversalLinkDomains(PBXProject project, string xCodeProjectPath, string xCodeTarget)
312312
{
313-
string entitlementsFileName = "Unity-iPhone.entitlements";
313+
string entitlementsFileName = project.GetBuildPropertyForAnyConfig(xCodeTarget, "CODE_SIGN_ENTITLEMENTS");
314+
if (entitlementsFileName == null)
315+
{
316+
entitlementsFileName = "Unity-iPhone.entitlements";
317+
}
314318

315319
Debug.Log("[Adjust]: Adding associated domains to entitlements file.");
316320
#if UNITY_2019_3_OR_NEWER

0 commit comments

Comments
 (0)