From 2fc41b6063a0d87ba27d5dce7a6a97e8160349fe Mon Sep 17 00:00:00 2001 From: Anna Kocheshkova Date: Thu, 31 Oct 2019 14:31:40 +0300 Subject: [PATCH] See if rollback helps --- Assets/AppCenter/Editor/PBXProjectWrapper.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Assets/AppCenter/Editor/PBXProjectWrapper.cs b/Assets/AppCenter/Editor/PBXProjectWrapper.cs index b79bfc9f..4d28f429 100644 --- a/Assets/AppCenter/Editor/PBXProjectWrapper.cs +++ b/Assets/AppCenter/Editor/PBXProjectWrapper.cs @@ -76,8 +76,9 @@ public class PBXProjectWrapper public void AddBuildProperty(string name, string value) { - var targetGuid = PBXProjectType.GetMethod("GetUnityMainTargetGuid") - .Invoke(_pbxProject, null); + var targetName = GetUnityTargetName(); + var targetGuid = PBXProjectType.GetMethod("TargetGuidByName") + .Invoke(_pbxProject, new object[] { targetName }); PBXProjectType.GetMethod("AddBuildProperty", new[] { typeof(string), typeof(string), typeof(string) }) .Invoke(_pbxProject,