Skip to content

Commit 35966b5

Browse files
fix compile error on Windows platform
1 parent cc57d30 commit 35966b5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Assets/Editor/AdjustEditor.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
using UnityEngine;
99
using UnityEditor;
1010
using UnityEditor.Callbacks;
11+
#if UNITY_EDITOR_OSX
1112
using UnityEditor.iOS.Xcode;
13+
#endif
1214

1315
public class AdjustEditor {
1416
private static bool isPostProcessingEnabled = true;
@@ -43,6 +45,7 @@ private static void RunPostBuildScript(BuildTarget target, bool preBuild, string
4345
UnityEngine.Debug.Log("adjust: Starting to perform post build tasks for Android platform.");
4446
RunPostProcessTasksAndroid();
4547
} else if (target == BuildTarget.iOS) {
48+
#if UNITY_EDITOR_OSX
4649
UnityEngine.Debug.Log("adjust: Starting to perform post build tasks for iOS platform.");
4750

4851
string xcodeProjectPath = projectPath + "/Unity-iPhone.xcodeproj/project.pbxproj";
@@ -82,6 +85,7 @@ private static void RunPostBuildScript(BuildTarget target, bool preBuild, string
8285

8386
// Save the changes to Xcode project file.
8487
xcodeProject.WriteToFile(xcodeProjectPath);
88+
#endif
8589
}
8690
}
8791

0 commit comments

Comments
 (0)