diff --git a/Mac/Backtrace-Unity-Mac-bundle.bundle.meta b/Mac/Backtrace-Unity-Mac-bundle.bundle.meta new file mode 100644 index 00000000..98a849b1 --- /dev/null +++ b/Mac/Backtrace-Unity-Mac-bundle.bundle.meta @@ -0,0 +1,74 @@ +fileFormatVersion: 2 +guid: 04beb45f9f22e4a2ebdf3048ae2ad9e3 +PluginImporter: + externalObjects: {} + serializedVersion: 2 + iconMap: {} + executionOrder: {} + defineConstraints: [] + isPreloaded: 1 + isOverridable: 0 + isExplicitlyReferenced: 0 + validateReferences: 1 + platformData: + - first: + : Any + second: + enabled: 0 + settings: + Exclude Editor: 1 + Exclude Linux64: 1 + Exclude OSXUniversal: 0 + Exclude WebGL: 1 + Exclude Win: 1 + Exclude Win64: 1 + Exclude iOS: 1 + - first: + Any: + second: + enabled: 0 + settings: {} + - first: + Editor: Editor + second: + enabled: 0 + settings: + CPU: AnyCPU + DefaultValueInitialized: true + OS: AnyOS + - first: + Standalone: Linux64 + second: + enabled: 0 + settings: + CPU: AnyCPU + - first: + Standalone: OSXUniversal + second: + enabled: 1 + settings: + CPU: AnyCPU + - first: + Standalone: Win + second: + enabled: 0 + settings: + CPU: AnyCPU + - first: + Standalone: Win64 + second: + enabled: 0 + settings: + CPU: AnyCPU + - first: + iPhone: iOS + second: + enabled: 0 + settings: + AddToEmbeddedBinaries: false + CPU: AnyCPU + CompileFlags: + FrameworkDependencies: + userData: + assetBundleName: + assetBundleVariant: diff --git a/Mac/Backtrace-Unity-Mac-bundle.bundle/Contents/Info.plist b/Mac/Backtrace-Unity-Mac-bundle.bundle/Contents/Info.plist new file mode 100644 index 00000000..33b38d5f --- /dev/null +++ b/Mac/Backtrace-Unity-Mac-bundle.bundle/Contents/Info.plist @@ -0,0 +1,48 @@ + + + + + BuildMachineOSBuild + 23F79 + CFBundleDevelopmentRegion + en + CFBundleExecutable + Backtrace-Unity-Mac-bundle + CFBundleIdentifier + Backtrace.Backtrace-Unity-Mac-bundle + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + Backtrace-Unity-Mac-bundle + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleSupportedPlatforms + + MacOSX + + CFBundleVersion + 1 + DTCompiler + com.apple.compilers.llvm.clang.1_0 + DTPlatformBuild + + DTPlatformName + macosx + DTPlatformVersion + 14.5 + DTSDKBuild + 23F73 + DTSDKName + macosx14.5 + DTXcode + 1540 + DTXcodeBuild + 15F31d + LSMinimumSystemVersion + 12.3 + NSHumanReadableCopyright + Copyright © 2024 Backtrace. All rights reserved. + + diff --git a/Mac/Backtrace-Unity-Mac-bundle.bundle/Contents/MacOS/Backtrace-Unity-Mac-bundle b/Mac/Backtrace-Unity-Mac-bundle.bundle/Contents/MacOS/Backtrace-Unity-Mac-bundle new file mode 100755 index 00000000..4f22bd0a Binary files /dev/null and b/Mac/Backtrace-Unity-Mac-bundle.bundle/Contents/MacOS/Backtrace-Unity-Mac-bundle differ diff --git a/Mac/Backtrace-Unity-Mac-bundle.bundle/Contents/_CodeSignature/CodeResources b/Mac/Backtrace-Unity-Mac-bundle.bundle/Contents/_CodeSignature/CodeResources new file mode 100644 index 00000000..d5d0fd74 --- /dev/null +++ b/Mac/Backtrace-Unity-Mac-bundle.bundle/Contents/_CodeSignature/CodeResources @@ -0,0 +1,115 @@ + + + + + files + + files2 + + rules + + ^Resources/ + + ^Resources/.*\.lproj/ + + optional + + weight + 1000 + + ^Resources/.*\.lproj/locversion.plist$ + + omit + + weight + 1100 + + ^Resources/Base\.lproj/ + + weight + 1010 + + ^version.plist$ + + + rules2 + + .*\.dSYM($|/) + + weight + 11 + + ^(.*/)?\.DS_Store$ + + omit + + weight + 2000 + + ^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/ + + nested + + weight + 10 + + ^.* + + ^Info\.plist$ + + omit + + weight + 20 + + ^PkgInfo$ + + omit + + weight + 20 + + ^Resources/ + + weight + 20 + + ^Resources/.*\.lproj/ + + optional + + weight + 1000 + + ^Resources/.*\.lproj/locversion.plist$ + + omit + + weight + 1100 + + ^Resources/Base\.lproj/ + + weight + 1010 + + ^[^/]+$ + + nested + + weight + 10 + + ^embedded\.provisionprofile$ + + weight + 20 + + ^version\.plist$ + + weight + 20 + + + + diff --git a/Mac/libBacktrace-Unity-Cocoa-Mac.a b/Mac/libBacktrace-Unity-Cocoa-Mac.a deleted file mode 100644 index e3ae2cf2..00000000 Binary files a/Mac/libBacktrace-Unity-Cocoa-Mac.a and /dev/null differ diff --git a/Mac/libBacktrace-Unity-Cocoa-Mac.a.meta b/Mac/libBacktrace-Unity-Cocoa-Mac.a.meta deleted file mode 100644 index cd70c428..00000000 --- a/Mac/libBacktrace-Unity-Cocoa-Mac.a.meta +++ /dev/null @@ -1,34 +0,0 @@ -fileFormatVersion: 2 -guid: 2ba1782c8a2c74471949f9d0c3eacc4d -PluginImporter: - externalObjects: {} - serializedVersion: 2 - iconMap: {} - executionOrder: {} - defineConstraints: [] - isPreloaded: 1 - isOverridable: 0 - isExplicitlyReferenced: 0 - validateReferences: 1 - platformData: - - first: - '': Any - second: - enabled: 0 - settings: - Exclude OSXUniversal: 0 - - first: - Editor: Editor - second: - enabled: 0 - settings: - DefaultValueInitialized: true - - first: - Standalone: OSXUniversal - second: - enabled: 1 - settings: - CPU: x86 - userData: - assetBundleName: - assetBundleVariant: \ No newline at end of file diff --git a/Runtime/Native/OSX/NativeClient.cs b/Runtime/Native/OSX/NativeClient.cs index 97a6bd3b..ace91709 100644 --- a/Runtime/Native/OSX/NativeClient.cs +++ b/Runtime/Native/OSX/NativeClient.cs @@ -24,22 +24,22 @@ internal struct Entry public string Value; } - [DllImport("__Internal", EntryPoint = "StartBacktraceIntegration")] + [DllImport("Backtrace-Unity-Mac-bundle", EntryPoint = "StartBacktraceIntegration")] private static extern void Start(string plCrashReporterUrl, string[] attributeKeys, string[] attributeValues, int attributesSize, bool enableOomSupport, string[] attachments, int attachmentSize, bool enableClientSideUnwinding); - [DllImport("__Internal", EntryPoint = "NativeReport")] + [DllImport("Backtrace-Unity-Mac-bundle", EntryPoint = "NativeReport")] private static extern void NativeReport(string message, bool setMainThreadAsFaultingThread, bool ignoreIfDebugger); - [DllImport("__Internal", EntryPoint = "Crash")] + [DllImport("Backtrace-Unity-Mac-bundle", EntryPoint = "Crash")] private static extern string Crash(); - [DllImport("__Internal", EntryPoint = "GetAttributes")] + [DllImport("Backtrace-Unity-Mac-bundle", EntryPoint = "GetAttributes")] private static extern void GetNativeAttributes(out IntPtr attributes, out int keysCount); - [DllImport("__Internal", EntryPoint = "AddAttribute")] + [DllImport("Backtrace-Unity-Mac-bundle", EntryPoint = "AddAttribute")] private static extern void AddAttribute(string key, string value); - [DllImport("__Internal", EntryPoint = "Disable")] + [DllImport("Backtrace-Unity-Mac-bundle", EntryPoint = "Disable")] private static extern void DisableNativeIntegration(); private static bool INITIALIZED = false;