diff --git a/popcorn/Assets/MyGame/Editor/PostProcessor.cs b/popcorn/Assets/MyGame/Editor/PostProcessor.cs index bca24414..a0699946 100644 --- a/popcorn/Assets/MyGame/Editor/PostProcessor.cs +++ b/popcorn/Assets/MyGame/Editor/PostProcessor.cs @@ -91,8 +91,6 @@ public static class PostProcessor{ pj.AddFrameworkToProject(target, "AdSupport.framework", false); pj.AddFrameworkToProject(target, "iAd.framework", false); - var target2 = pj.GetUnityMainTargetGuid(); - foreach (KeyValuePair> entry in appTextMap) { string appNameConverted = ""; @@ -125,7 +123,7 @@ public static class PostProcessor{ w.Close(); string fileGuid = pj.AddFile( Path.Combine(path, lprojDir), "/"+lprojDir, PBXSourceTree.Source ); - pj.AddFileToBuild( target2, fileGuid ); + pj.AddFileToBuild( target, fileGuid ); pj.WriteToFile( projectPath ); }