diff --git a/Editor/TDPostprocessBuild.iOS.cs b/Editor/TDPostprocessBuild.iOS.cs index a0b2192..c2960f7 100644 --- a/Editor/TDPostprocessBuild.iOS.cs +++ b/Editor/TDPostprocessBuild.iOS.cs @@ -3,13 +3,16 @@ using ThinkingData.Analytics.Utils; using UnityEditor; using UnityEditor.Callbacks; +#if UNITY_IOS using UnityEditor.iOS.Xcode; +#endif using UnityEngine; namespace ThinkingData.Analytics.Editors { public static class TD_PostProcessBuildIOS { +#if UNITY_IOS [PostProcessBuildAttribute(88)] public static void OnPostProcessBuild(BuildTarget target, string targetPath) { @@ -57,6 +60,7 @@ public static void OnPostProcessBuild(BuildTarget target, string targetPath) } plist.WriteToFile(plistPath); } +#endif } } #endif