From 2926f8a344e19b33f6da23045cf6445c479891df Mon Sep 17 00:00:00 2001 From: melekr Date: Thu, 15 Aug 2024 11:37:13 -0400 Subject: [PATCH 1/2] Bump sdk version and update Changelog --- Backtrace.podspec | 2 +- Backtrace.xcodeproj/project.pbxproj | 4 ++-- CHANGELOG.md | 8 ++++++-- Sources/Features/Attributes/DefaultAttributes.swift | 2 +- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/Backtrace.podspec b/Backtrace.podspec index 555a4742..313c5ab7 100644 --- a/Backtrace.podspec +++ b/Backtrace.podspec @@ -9,7 +9,7 @@ Pod::Spec.new do |s| s.name = "Backtrace" - s.version = "2.0.5-alpha1" + s.version = "2.0.6" s.swift_version = '5' s.summary = "Backtrace's integration with iOS, macOS and tvOS" s.description = "Reliable crash and hang reporting for iOS, macOS and tvOS." diff --git a/Backtrace.xcodeproj/project.pbxproj b/Backtrace.xcodeproj/project.pbxproj index 75484a3e..b13a45e0 100644 --- a/Backtrace.xcodeproj/project.pbxproj +++ b/Backtrace.xcodeproj/project.pbxproj @@ -3406,7 +3406,7 @@ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; IPHONEOS_DEPLOYMENT_TARGET = 12.0; MACOSX_DEPLOYMENT_TARGET = 10.13; - MARKETING_VERSION = 2.0.5; + MARKETING_VERSION = 2.0.6; STRIP_STYLE = debugging; STRIP_SWIFT_SYMBOLS = NO; SWIFT_VERSION = 5.0; @@ -3420,7 +3420,7 @@ DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; IPHONEOS_DEPLOYMENT_TARGET = 12.0; MACOSX_DEPLOYMENT_TARGET = 10.13; - MARKETING_VERSION = 2.0.5; + MARKETING_VERSION = 2.0.6; STRIP_STYLE = debugging; STRIP_SWIFT_SYMBOLS = NO; SWIFT_VERSION = 5.0; diff --git a/CHANGELOG.md b/CHANGELOG.md index 961740aa..da0b8cb0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,11 @@ # Backtrace Cocoa Release Notes -## Version 2.0.5-alpha1 -- Distributes XCFramework (#137) +## Version 2.0.6 +- Distributes XCFramework (#136) +- Adds Mac catalyst support (#139) +- Embeds xcprivacy manifest (#140) +- Codesigns binaries (#141) +- Generates PLCReport with exception (#142) ## Version 2.0.5 - Enables client side unwinding default setting (#134) diff --git a/Sources/Features/Attributes/DefaultAttributes.swift b/Sources/Features/Attributes/DefaultAttributes.swift index 85c60735..60ff963a 100644 --- a/Sources/Features/Attributes/DefaultAttributes.swift +++ b/Sources/Features/Attributes/DefaultAttributes.swift @@ -200,7 +200,7 @@ struct LibInfo: AttributesSource { private static let applicationGuidKey = "backtrace.unique.user.identifier" private static let applicationLangName = "backtrace-cocoa" - var backtraceVersion = "2.0.5-alpha1" + var backtraceVersion = "2.0.6" var immutable: [String: Any?] { return ["guid": LibInfo.guid(store: UserDefaultsStore.self).uuidString, From be79ce56d8d3aef9ec9b52c2176e43084a0be941 Mon Sep 17 00:00:00 2001 From: melekr Date: Thu, 15 Aug 2024 14:41:38 -0400 Subject: [PATCH 2/2] Add multiplatform binary framework bundle integration --- README.md | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b99bf4c1..f0a6d3a1 100644 --- a/README.md +++ b/README.md @@ -17,8 +17,8 @@ Choose one of the following integration methods. ### Via Xcode 1. In **File > Add Packages**, search for and add `https://github.com/backtrace-labs/backtrace-cocoa.git` -1. Verify your project **Package Dependencies** list backtrace-cocoa. -1. Add Backtrace to your target’s **Frameworks, Libraries, and Embedded Content**. +2. Verify your project **Package Dependencies** list backtrace-cocoa. +3. Add Backtrace to your target’s **Frameworks, Libraries, and Embedded Content**. ### Via Package.swift Add this dependency to your `Package.swift` file: @@ -30,10 +30,25 @@ Add this dependency to your `Package.swift` file: Add the following to your `Podfile`: - Specify `use_frameworks!`. - Add the `Backtrace` pod: + ``` pod 'Backtrace' ``` +### Via Multiplatform Binary Framework Bundle +1. Obtain and Unarchive [Backtrace](https://github.com/backtrace-labs/backtrace-cocoa/releases) binary frameworks +2. Add Backtrace multiplatform binary framework bundle to your project using the method that best fits your workflow: + * Drag & drop `.framework` or `.xcframework` from Finder into Xcode's Project Navigator and check the Target Membership setting + * Using Swift Package Manager's `binaryTarget` flag + * Using CocoaPods's `vendored_frameworks` flag + + > **Note:** + > Backtrace multiplatform binary framework contains Mach-O 64-bit dynamic binaries for iOS, macOS, Mac Catalyst and tvOS. + > + > When adding Backtrace to your project, set `Frameworks, Libraries and Embedded Content` section to `Embed`. + > + > [PLCrashReporter](https://github.com/microsoft/plcrashreporter?tab=readme-ov-file#integration-by-copying-the-binaries-into-your-project) multiplatform binary framework contains static binaries, set `Frameworks, Libraries and Embedded Content` section to `Do Not Embed`. + ## Usage ### Swift https://github.com/backtrace-labs/backtrace-cocoa/blob/8551020be9334f61cd9f27d39a7b4e7d2733d4b0/Examples/Example-iOS/AppDelegate.swift#L21-L41