public static void OnPostprocessBuild(BuildTarget buildTarget, string path) { if (buildTarget != BuildTarget.iOS) { return; } // 获得工程路径 var projPath = TapCommonCompile.GetProjPath(path); var proj = TapCommonCompile.ParseProjPath(projPath); var target = TapCommonCompile.GetUnityTarget(proj); if (TapCommonCompile.CheckTarget(target)) { Debug.LogError("Unity-iPhone is NUll"); return; } if (TapCommonCompile.HandlerIOSSetting(path, Application.dataPath, "TapFriendResource", "com.taptap.tds.friends.ui", "FriendsUI", new[] { "TapFriendResource.bundle" }, target, projPath, proj)) { Debug.Log("TapFriendsUI add Bundle Success!"); return; } Debug.LogWarning("TapFriendsUI add Bundle Failed!"); }
public static void OnPostprocessBuild(BuildTarget buildTarget, string path) { if (buildTarget != BuildTarget.iOS) { return; } var projPath = TapCommonCompile.GetProjPath(path); var proj = TapCommonCompile.ParseProjPath(projPath); var target = TapCommonCompile.GetUnityTarget(proj); var unityFrameworkTarget = TapCommonCompile.GetUnityFrameworkTarget(proj); if (TapCommonCompile.CheckTarget(target)) { Debug.LogError("Unity-iPhone is NUll"); return; } proj.AddFrameworkToProject(unityFrameworkTarget, "AdSupport.framework", false); proj.AddFrameworkToProject(unityFrameworkTarget, "CoreMotion.framework", false); proj.AddFrameworkToProject(unityFrameworkTarget, "Security.framework", false); proj.AddFrameworkToProject(unityFrameworkTarget, "SystemConfiguration.framework", false); proj.AddFrameworkToProject(unityFrameworkTarget, "AppTrackingTransparency.framework", true); }