From 43907c748ad7fe34ced360867658e3e2a6226d27 Mon Sep 17 00:00:00 2001 From: Kazuhiro Masuda Date: Wed, 5 Mar 2025 12:51:29 +0900 Subject: [PATCH] Use CODE_SIGN_ENTITLEMENTS value if the value exists. --- Assets/Adjust/Scripts/Editor/AdjustEditor.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Assets/Adjust/Scripts/Editor/AdjustEditor.cs b/Assets/Adjust/Scripts/Editor/AdjustEditor.cs index 7c5aea44..eed421f5 100644 --- a/Assets/Adjust/Scripts/Editor/AdjustEditor.cs +++ b/Assets/Adjust/Scripts/Editor/AdjustEditor.cs @@ -310,7 +310,11 @@ private static PlistElementDict CreatePlistElementDict(PlistElementArray rootArr private static void AddUniversalLinkDomains(PBXProject project, string xCodeProjectPath, string xCodeTarget) { - string entitlementsFileName = "Unity-iPhone.entitlements"; + string entitlementsFileName = project.GetBuildPropertyForAnyConfig(xCodeTarget, "CODE_SIGN_ENTITLEMENTS"); + if (entitlementsFileName == null) + { + entitlementsFileName = "Unity-iPhone.entitlements"; + } Debug.Log("[Adjust]: Adding associated domains to entitlements file."); #if UNITY_2019_3_OR_NEWER