Skip to content

Commit 47e4712

Browse files
committed
fixed iOS native client
1 parent 28e0f86 commit 47e4712

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Runtime/Model/BacktraceConfiguration.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,11 @@ public class BacktraceConfiguration : ScriptableObject
8484
/// <summary>
8585
/// Capture native NDK Crashes.
8686
/// </summary>
87+
#if UNITY_ANDROID
8788
[Tooltip("Capture native NDK Crashes (ANDROID API 21+)")]
89+
#elif UNITY_IOS
90+
[Tooltip("Capture native Crashes")]
91+
#endif
8892

8993
public bool CaptureNativeCrashes = true;
9094
#endif

Runtime/Native/iOS/NativeClient.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#if UNITY_IOS
2+
13
using System.Collections.Generic;
24
using System.Runtime.InteropServices;
35
using Backtrace.Unity.Model;
@@ -83,4 +85,5 @@ public void SetAttribute(string key, string value)
8385
Debug.Log("Custom report attribuets on iOS are unsupported.");
8486
}
8587
}
86-
}
88+
}
89+
#endif

0 commit comments

Comments
 (0)