Skip to content

Commit 86b5fed

Browse files
authored
Merge pull request apple#5 from dodgy-ltd/cross-platform-fixes
Cross platform fixes
2 parents 6e7ad30 + 08095d4 commit 86b5fed

File tree

19 files changed

+28
-28
lines changed

19 files changed

+28
-28
lines changed

plug-ins/Apple.Accessibility/Apple.Accessibility_Unity/Assets/Apple.Accessibility/Editor/AppleAccessibilityBuildStep.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using UnityEditor;
55
using UnityEngine;
66

7-
#if UNITY_EDITOR_OSX
7+
#if UNITY_EDITOR_OSX && (UNITY_IOS || UNITY_TVOS || UNITY_STANDALONE_OSX)
88
using UnityEditor.iOS.Xcode;
99
#endif
1010

@@ -20,7 +20,7 @@ public class AppleAccessibilityBuildStep : AppleBuildStep
2020
{BuildTarget.tvOS, "AppleAccessibility.framework"},
2121
};
2222

23-
#if UNITY_EDITOR_OSX
23+
#if UNITY_EDITOR_OSX && (UNITY_IOS || UNITY_TVOS || UNITY_STANDALONE_OSX)
2424
public override void OnProcessFrameworks(AppleBuildProfile _, BuildTarget buildTarget, string pathToBuiltTarget, PBXProject pbxProject)
2525
{
2626
if (_libraryTable.ContainsKey(buildTarget))

plug-ins/Apple.Core/Apple.Core_Unity/Assets/Apple.Core/Editor/AppleBuild.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if UNITY_EDITOR_OSX
1+
#if UNITY_EDITOR_OSX && (UNITY_IOS || UNITY_TVOS || UNITY_STANDALONE_OSX)
22
using System.IO;
33
using System.Text.RegularExpressions;
44
using UnityEditor;

plug-ins/Apple.Core/Apple.Core_Unity/Assets/Apple.Core/Editor/AppleBuildStep.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
using UnityEditor;
66
using UnityEngine;
77

8-
#if UNITY_EDITOR_OSX
8+
#if UNITY_EDITOR_OSX && (UNITY_IOS || UNITY_TVOS || UNITY_STANDALONE_OSX)
99
using UnityEditor.iOS.Xcode;
1010
#endif
1111

@@ -30,7 +30,7 @@ where typeof(AppleBuildStep).IsAssignableFrom(type) && type != typeof(AppleBuild
3030
return appleBuildStepTypes;
3131
}
3232

33-
#if UNITY_EDITOR_OSX
33+
#if UNITY_EDITOR_OSX && (UNITY_IOS || UNITY_TVOS || UNITY_STANDALONE_OSX)
3434
/// <summary>
3535
/// Called at the beginning of performing build post process. This is invoked first for all steps.
3636
/// </summary>

plug-ins/Apple.Core/Apple.Core_Unity/Assets/Apple.Core/Editor/AppleCoreBuildStep.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using UnityEngine;
44
using UnityEditor;
55

6-
#if UNITY_EDITOR_OSX
6+
#if UNITY_EDITOR_OSX && (UNITY_IOS || UNITY_TVOS || UNITY_STANDALONE_OSX)
77
using UnityEditor.iOS.Xcode;
88
#endif
99

@@ -20,7 +20,7 @@ public class AppleCoreBuildStep : AppleBuildStep
2020
{BuildTarget.StandaloneOSX, "AppleCoreNativeMac.bundle"}
2121
};
2222

23-
#if UNITY_EDITOR_OSX
23+
#if UNITY_EDITOR_OSX && (UNITY_IOS || UNITY_TVOS || UNITY_STANDALONE_OSX)
2424
public override void OnFinalizePostProcess(AppleBuildProfile appleBuildProfile, BuildTarget buildTarget, string pathToBuiltProject)
2525
{
2626
Debug.Log($"AppleBuild: disabling Bitcode for framework and app targets.");

plug-ins/Apple.Core/Apple.Core_Unity/Assets/Apple.Core/Editor/AppleFrameworkUtility.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if UNITY_EDITOR_OSX
1+
#if UNITY_EDITOR_OSX && (UNITY_IOS || UNITY_TVOS || UNITY_STANDALONE_OSX)
22
using System;
33
using System.IO;
44
using UnityEditor;

plug-ins/Apple.Core/Apple.Core_Unity/Assets/Apple.Core/Editor/AppleNativePluginProcessor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if UNITY_EDITOR_OSX
1+
#if UNITY_EDITOR_OSX && (UNITY_IOS || UNITY_TVOS || UNITY_STANDALONE_OSX)
22
using System;
33
using System.IO;
44
using System.Collections;

plug-ins/Apple.Core/Apple.Core_Unity/Assets/Apple.Core/Editor/AppleSecurityBuildStep.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using UnityEditor;
2-
#if UNITY_EDITOR_OSX
2+
#if UNITY_EDITOR_OSX && (UNITY_IOS || UNITY_TVOS || UNITY_STANDALONE_OSX)
33
using UnityEditor.iOS.Xcode;
44
#endif
55
using UnityEngine;
@@ -61,7 +61,7 @@ public class AppleSecurityBuildStep : AppleBuildStep
6161
[Tooltip("A Boolean value that indicates whether the app may have read-write access to the Movies folder.")]
6262
public bool AllowMoviesReadWrite;
6363

64-
#if UNITY_EDITOR_OSX
64+
#if UNITY_EDITOR_OSX && (UNITY_IOS || UNITY_TVOS || UNITY_STANDALONE_OSX)
6565
public override void OnProcessEntitlements(AppleBuildProfile appleBuildProfile, BuildTarget buildTarget, string pathToBuiltTarget, PlistDocument entitlements)
6666
{
6767
if (AppSandboxEntitlement)

plug-ins/Apple.Core/Apple.Core_Unity/Assets/Apple.Core/Editor/AppleUserManagementBuildStep.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using UnityEditor;
2-
#if UNITY_EDITOR_OSX
2+
#if UNITY_EDITOR_OSX && (UNITY_IOS || UNITY_TVOS || UNITY_STANDALONE_OSX)
33
using UnityEditor.iOS.Xcode;
44
#endif
55
using UnityEngine;
@@ -20,7 +20,7 @@ public void Reset()
2020
IsEnabled = false;
2121
}
2222

23-
#if UNITY_EDITOR_OSX
23+
#if UNITY_EDITOR_OSX && (UNITY_IOS || UNITY_TVOS || UNITY_STANDALONE_OSX)
2424
public override void OnProcessEntitlements(AppleBuildProfile appleBuildProfile, BuildTarget buildTarget, string pathToBuiltTarget, PlistDocument entitlements)
2525
{
2626
if (buildTarget == BuildTarget.tvOS)

plug-ins/Apple.Core/Apple.Core_Unity/Assets/Apple.Core/Editor/CodsignCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if UNITY_EDITOR_OSX
1+
#if UNITY_EDITOR_OSX && (UNITY_IOS || UNITY_TVOS || UNITY_STANDALONE_OSX)
22
using System.Collections.Generic;
33
using System.IO;
44

plug-ins/Apple.Core/Apple.Core_Unity/Assets/Apple.Core/Editor/KeychainCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if UNITY_EDITOR_OSX
1+
#if UNITY_EDITOR_OSX && (UNITY_IOS || UNITY_TVOS || UNITY_STANDALONE_OSX)
22

33
using System.IO;
44

0 commit comments

Comments
 (0)