Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use CODE_SIGN_ENTITLEMENTS value if the value exists. #327

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Assets/Adjust/Scripts/Editor/AdjustEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down