Skip to content

Commit fac7b58

Browse files
Merge branch 'main' into feat/mach-exception-codes
2 parents a946676 + 075a044 commit fac7b58

File tree

55 files changed

+776
-428
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+776
-428
lines changed

.github/pull_request_template.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@
1313

1414
<!--- Put an `x` in the boxes that apply -->
1515

16-
- [ ] I reviewed the submitted code
17-
- [ ] I added tests to verify the changes
18-
- [ ] No new PII added or SDK only sends newly added PII if `sendDefaultPII` is enabled
19-
- [ ] I updated the docs if needed
20-
- [ ] Review from the native team if needed
21-
- [ ] No breaking changes
16+
- [ ] I reviewed the submitted code.
17+
- [ ] I added tests to verify the changes.
18+
- [ ] No new PII added or SDK only sends newly added PII if `sendDefaultPII` is enabled.
19+
- [ ] I updated the docs if needed.
20+
- [ ] Review from the native team if needed.
21+
- [ ] No breaking change or entry added to the changelog.
22+
- [ ] No breaking change for hybrid SDKs or communicated to hybrid SDKs.
2223

2324
## :crystal_ball: Next steps

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
uses: actions/checkout@v3
2323

2424
- name: Initialize CodeQL
25-
uses: github/codeql-action/init@a34ca99b4610d924e04c68db79e503e1f79f9f02 # pin@v2
25+
uses: github/codeql-action/init@3ebbd71c74ef574dbc558c82f70e52732c8b44fe # pin@v2
2626
with:
2727
languages: ${{ matrix.language }}
2828

@@ -35,4 +35,4 @@ jobs:
3535
-destination platform="iOS Simulator,OS=latest,name=iPhone 11 Pro"
3636
3737
- name: Perform CodeQL Analysis
38-
uses: github/codeql-action/analyze@a34ca99b4610d924e04c68db79e503e1f79f9f02 # pin@v2
38+
uses: github/codeql-action/analyze@3ebbd71c74ef574dbc558c82f70e52732c8b44fe # pin@v2

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,15 @@
22

33
## Unreleased
44

5+
### Fixes
6+
7+
- Cleanup AppHangTracking properly when closing SDK (#2671)
8+
9+
## 8.1.0
10+
511
### Features
612

13+
- Add thread information to File I/O spans (#2573)
714
- AttachScreenshots is GA (#2623)
815
- Gather profiling timeseries metrics for CPU usage and memory footprint (#2493)
916
- Change SentryTracedView `transactionName` to `viewName` (#2630)
@@ -16,6 +23,7 @@
1623
- Carthage Xcode 14 compatibility issue (#2636)
1724
- Crash in CppException Monitor (#2639)
1825
- fix: Disable watchdog when disabling crash handler (#2621)
26+
- MachException Improvements (#2662)
1927

2028
## 8.0.0
2129

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ This SDK is written in Objective-C but also provides a nice Swift interface.
2222

2323
**Where is the master branch?**
2424

25-
We renamed the default branch from `master` to `main`. We are going to keep the `master` branch for backwards compatibility for package managers pointing to the [`master` branch](https://github.com/getsentry/sentry-cocoa/tree/master).
25+
We renamed the default branch from `master` to `main`.
2626

2727
# Initialization
2828

Samples/iOS-Swift/iOS-Swift.xcodeproj/xcshareddata/xcschemes/iOS-Swift.xcscheme

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
</TestAction>
5151
<LaunchAction
5252
buildConfiguration = "Debug"
53-
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
54-
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
53+
selectedDebuggerIdentifier = ""
54+
selectedLauncherIdentifier = "Xcode.IDEFoundation.Launcher.PosixSpawn"
5555
launchStyle = "0"
5656
useCustomWorkingDirectory = "NO"
5757
ignoresPersistentStateOnLaunch = "NO"

Samples/iOS-Swift/iOS-SwiftUITests/LaunchUITests.swift

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,21 @@ class LaunchUITests: XCTestCase {
2020
super.tearDown()
2121
}
2222

23+
func testCrashRecovery() {
24+
//We will be removing this test from iOS 12 because it fails during CI, which looks like a bug that we cannot reproduce.
25+
//If we introduce a bug in the crash report process we will catch it with tests for iOS 13 or above.
26+
//For some reason is not possible to use @available(iOS 13, *) in the test function.
27+
if #available(iOS 13, *) {
28+
app.buttons["crash"].tap()
29+
if app.buttons["crash"].exists {
30+
XCTFail("App did not crashed")
31+
}
32+
33+
app.launch()
34+
waitForExistenseOfMainScreen()
35+
}
36+
}
37+
2338
func testBreadcrumbData() {
2439
let breadcrumbLabel = app.staticTexts["breadcrumbLabel"]
2540
breadcrumbLabel.waitForExistence("Breadcrumb label not found.")

Samples/iOS-SwiftUI/iOS-SwiftUI-UITests/LaunchUITests.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,4 @@ class LaunchUITests: XCTestCase {
2424
XCTAssertEqual(transactionName.label, "Content View Body")
2525
XCTAssertEqual(childParentId.label, transactionId.label)
2626
}
27-
2827
}

Sentry.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "Sentry"
3-
s.version = "8.0.0"
3+
s.version = "8.1.0"
44
s.summary = "Sentry client for cocoa"
55
s.homepage = "https://github.com/getsentry/sentry-cocoa"
66
s.license = "mit"
@@ -27,7 +27,7 @@ Pod::Spec.new do |s|
2727
}
2828

2929
s.default_subspecs = ['Core']
30-
s.dependency "SentryPrivate", "8.0.0"
30+
s.dependency "SentryPrivate", "8.1.0"
3131

3232
s.subspec 'Core' do |sp|
3333
sp.source_files = "Sources/Sentry/**/*.{h,hpp,m,mm,c,cpp}",

Sentry.xcodeproj/project.pbxproj

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,10 +695,13 @@
695695
A8AFFCD42907E0CA00967CD7 /* SentryRequestTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = A8AFFCD32907E0CA00967CD7 /* SentryRequestTests.swift */; };
696696
A8F17B2E2901765900990B25 /* SentryRequest.m in Sources */ = {isa = PBXBuildFile; fileRef = A8F17B2D2901765900990B25 /* SentryRequest.m */; };
697697
A8F17B342902870300990B25 /* SentryHttpStatusCodeRange.m in Sources */ = {isa = PBXBuildFile; fileRef = A8F17B332902870300990B25 /* SentryHttpStatusCodeRange.m */; };
698+
D800B05A29707A5300B8E20F /* TestProcessInfoWrapper.swift in Sources */ = {isa = PBXBuildFile; fileRef = D800B05929707A5300B8E20F /* TestProcessInfoWrapper.swift */; };
698699
D8019910286B089000C277F0 /* SentryCrashReportSinkTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D801990F286B089000C277F0 /* SentryCrashReportSinkTests.swift */; };
699700
D808FB88281AB33C009A2A33 /* SentryUIEventTrackerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D808FB86281AB31D009A2A33 /* SentryUIEventTrackerTests.swift */; };
700701
D808FB8B281BCE96009A2A33 /* TestSentrySwizzleWrapper.swift in Sources */ = {isa = PBXBuildFile; fileRef = D808FB89281BCE46009A2A33 /* TestSentrySwizzleWrapper.swift */; };
701702
D808FB92281BF6EC009A2A33 /* SentryUIEventTrackingIntegrationTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = D808FB90281BF6E9009A2A33 /* SentryUIEventTrackingIntegrationTests.swift */; };
703+
D8105B39297A881B00299F03 /* SentryProcessInfoWrapper.h in Headers */ = {isa = PBXBuildFile; fileRef = D8105B38297A881A00299F03 /* SentryProcessInfoWrapper.h */; };
704+
D8105B3B297A882600299F03 /* SentryProcessInfoWrapper.m in Sources */ = {isa = PBXBuildFile; fileRef = D8105B3A297A882600299F03 /* SentryProcessInfoWrapper.m */; };
702705
D8137D54272B53070082656C /* TestSentrySpan.m in Sources */ = {isa = PBXBuildFile; fileRef = D8137D53272B53070082656C /* TestSentrySpan.m */; };
703706
D8199DBE29376EDE0074249E /* SentryInternal.h in Headers */ = {isa = PBXBuildFile; fileRef = D8199DB829376ECC0074249E /* SentryInternal.h */; };
704707
D8199DBF29376EE20074249E /* SentryInternal.m in Sources */ = {isa = PBXBuildFile; fileRef = D8199DB929376ECC0074249E /* SentryInternal.m */; };
@@ -717,6 +720,7 @@
717720
D855AD62286ED6A4002573E1 /* SentryCrashTests.m in Sources */ = {isa = PBXBuildFile; fileRef = D855AD61286ED6A4002573E1 /* SentryCrashTests.m */; };
718721
D855B3E827D652AF00BCED76 /* SentryCoreDataTrackingIntegrationTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = D855B3E727D652AF00BCED76 /* SentryCoreDataTrackingIntegrationTest.swift */; };
719722
D855B3EA27D652C700BCED76 /* TestCoreDataStack.swift in Sources */ = {isa = PBXBuildFile; fileRef = D855B3E927D652C700BCED76 /* TestCoreDataStack.swift */; };
723+
D85790292976A69F00C6AC1F /* TestDebugImageProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = D85790282976A69F00C6AC1F /* TestDebugImageProvider.swift */; };
720724
D85852B627ECEEDA00C6D8AE /* SentryScreenshot.m in Sources */ = {isa = PBXBuildFile; fileRef = D85852B427ECEEDA00C6D8AE /* SentryScreenshot.m */; };
721725
D85852BA27EDDC5900C6D8AE /* SentryUIApplication.m in Sources */ = {isa = PBXBuildFile; fileRef = D85852B827EDDC5900C6D8AE /* SentryUIApplication.m */; };
722726
D859696B27BECD8F0036A46E /* SentryCoreDataTrackingIntegration.m in Sources */ = {isa = PBXBuildFile; fileRef = D859696927BECD8F0036A46E /* SentryCoreDataTrackingIntegration.m */; };
@@ -1555,10 +1559,13 @@
15551559
A8F17B2D2901765900990B25 /* SentryRequest.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryRequest.m; sourceTree = "<group>"; };
15561560
A8F17B332902870300990B25 /* SentryHttpStatusCodeRange.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryHttpStatusCodeRange.m; sourceTree = "<group>"; };
15571561
D800942628F82F3A005D3943 /* SwiftDescriptor.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SwiftDescriptor.swift; sourceTree = "<group>"; };
1562+
D800B05929707A5300B8E20F /* TestProcessInfoWrapper.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestProcessInfoWrapper.swift; sourceTree = "<group>"; };
15581563
D801990F286B089000C277F0 /* SentryCrashReportSinkTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryCrashReportSinkTests.swift; sourceTree = "<group>"; };
15591564
D808FB86281AB31D009A2A33 /* SentryUIEventTrackerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryUIEventTrackerTests.swift; sourceTree = "<group>"; };
15601565
D808FB89281BCE46009A2A33 /* TestSentrySwizzleWrapper.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestSentrySwizzleWrapper.swift; sourceTree = "<group>"; };
15611566
D808FB90281BF6E9009A2A33 /* SentryUIEventTrackingIntegrationTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryUIEventTrackingIntegrationTests.swift; sourceTree = "<group>"; };
1567+
D8105B38297A881A00299F03 /* SentryProcessInfoWrapper.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SentryProcessInfoWrapper.h; path = include/SentryProcessInfoWrapper.h; sourceTree = "<group>"; };
1568+
D8105B3A297A882600299F03 /* SentryProcessInfoWrapper.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SentryProcessInfoWrapper.m; sourceTree = "<group>"; };
15621569
D8137D52272B53070082656C /* TestSentrySpan.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TestSentrySpan.h; sourceTree = "<group>"; };
15631570
D8137D53272B53070082656C /* TestSentrySpan.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = TestSentrySpan.m; sourceTree = "<group>"; };
15641571
D8199DAA29376E9B0074249E /* SentrySwiftUI.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = SentrySwiftUI.framework; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -1582,6 +1589,7 @@
15821589
D855AD61286ED6A4002573E1 /* SentryCrashTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryCrashTests.m; sourceTree = "<group>"; };
15831590
D855B3E727D652AF00BCED76 /* SentryCoreDataTrackingIntegrationTest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SentryCoreDataTrackingIntegrationTest.swift; sourceTree = "<group>"; };
15841591
D855B3E927D652C700BCED76 /* TestCoreDataStack.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestCoreDataStack.swift; sourceTree = "<group>"; };
1592+
D85790282976A69F00C6AC1F /* TestDebugImageProvider.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestDebugImageProvider.swift; sourceTree = "<group>"; };
15851593
D85852B427ECEEDA00C6D8AE /* SentryScreenshot.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryScreenshot.m; sourceTree = "<group>"; };
15861594
D85852B827EDDC5900C6D8AE /* SentryUIApplication.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryUIApplication.m; sourceTree = "<group>"; };
15871595
D859696927BECD8F0036A46E /* SentryCoreDataTrackingIntegration.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SentryCoreDataTrackingIntegration.m; sourceTree = "<group>"; };
@@ -1871,6 +1879,7 @@
18711879
63AA756E1EB8AEDB00D153DE /* Sources */,
18721880
63AA75921EB8AEDB00D153DE /* Tests */,
18731881
7D826E3C2390840E00EED93D /* Utils */,
1882+
D8105B37297A86B800299F03 /* Recovered References */,
18741883
);
18751884
indentWidth = 4;
18761885
sourceTree = "<group>";
@@ -2020,6 +2029,8 @@
20202029
844EDC75294144DB00C86F34 /* SentrySystemWrapper.mm */,
20212030
844EDCE32947DC3100C86F34 /* SentryNSTimerWrapper.h */,
20222031
844EDCE42947DC3100C86F34 /* SentryNSTimerWrapper.m */,
2032+
D8105B38297A881A00299F03 /* SentryProcessInfoWrapper.h */,
2033+
D8105B3A297A882600299F03 /* SentryProcessInfoWrapper.m */,
20232034
);
20242035
name = Helper;
20252036
sourceTree = "<group>";
@@ -2638,6 +2649,8 @@
26382649
7B18DE4328D9F8F6004845C6 /* TestNSNotificationCenterWrapper.swift */,
26392650
7B18DE4928DA0C8B004845C6 /* SentryNSNotificationCenterWrapperTests.swift */,
26402651
84A8892028DBD8D600C51DFD /* SentryDeviceTests.mm */,
2652+
D800B05929707A5300B8E20F /* TestProcessInfoWrapper.swift */,
2653+
D85790282976A69F00C6AC1F /* TestDebugImageProvider.swift */,
26412654
844EDC712941442200C86F34 /* TestSentryNSProcessInfoWrapper.swift */,
26422655
844EDC7829415AB300C86F34 /* TestSentrySystemWrapper.swift */,
26432656
844EDCE72947DCD700C86F34 /* TestSentryNSTimerWrapper.swift */,
@@ -3061,6 +3074,13 @@
30613074
path = UIEvents;
30623075
sourceTree = "<group>";
30633076
};
3077+
D8105B37297A86B800299F03 /* Recovered References */ = {
3078+
isa = PBXGroup;
3079+
children = (
3080+
);
3081+
name = "Recovered References";
3082+
sourceTree = "<group>";
3083+
};
30643084
D8199DB329376ECC0074249E /* SentrySwiftUI */ = {
30653085
isa = PBXGroup;
30663086
children = (
@@ -3351,6 +3371,7 @@
33513371
D8BD2E6829361A0F00D96C6A /* PrivatesHeader.h in Headers */,
33523372
7B98D7CB25FB64EC00C5A389 /* SentryWatchdogTerminationTrackingIntegration.h in Headers */,
33533373
63FE710920DA4C1000CDBAE8 /* SentryCrashFileUtils.h in Headers */,
3374+
D8105B39297A881B00299F03 /* SentryProcessInfoWrapper.h in Headers */,
33543375
03F84D1F27DD414C008FE43F /* SentryAsyncSafeLogging.h in Headers */,
33553376
7BE3C76B2445C27A00A38442 /* SentryCurrentDateProvider.h in Headers */,
33563377
6344DDB41EC309E000D9160D /* SentryCrashReportSink.h in Headers */,
@@ -3690,6 +3711,7 @@
36903711
63FE708D20DA4C1000CDBAE8 /* SentryCrashReportFilterBasic.m in Sources */,
36913712
63FE718120DA4C1100CDBAE8 /* SentryCrashDoctor.m in Sources */,
36923713
63FE713720DA4C1100CDBAE8 /* SentryCrashCPU_x86_64.c in Sources */,
3714+
D8105B3B297A882600299F03 /* SentryProcessInfoWrapper.m in Sources */,
36933715
8ECC674725C23A20000E2BF6 /* SentrySpanContext.m in Sources */,
36943716
7B18DE4228D9F794004845C6 /* SentryNSNotificationCenterWrapper.m in Sources */,
36953717
639FCFA91EBC80CC00778193 /* SentryFrame.m in Sources */,
@@ -3872,6 +3894,7 @@
38723894
63B819141EC352A7002FDF4C /* SentryInterfacesTests.m in Sources */,
38733895
7B68345128F7EB3D00FB7064 /* SentryMeasurementUnitTests.swift in Sources */,
38743896
7B14089A248791660035403D /* SentryCrashStackEntryMapperTests.swift in Sources */,
3897+
D85790292976A69F00C6AC1F /* TestDebugImageProvider.swift in Sources */,
38753898
7B869EBC249B91D8004F4FDB /* SentryDebugMetaEquality.swift in Sources */,
38763899
7B01CE3D271993AC00B5AF31 /* SentryTransportFactoryTests.swift in Sources */,
38773900
7B30B68026527C3C006B2752 /* SentryFramesTrackerTests.swift in Sources */,
@@ -3998,6 +4021,7 @@
39984021
63FE722520DA66EC00CDBAE8 /* SentryCrashFileUtils_Tests.m in Sources */,
39994022
7BFC16BA2524D4AF00FF6266 /* SentryMessage+Equality.m in Sources */,
40004023
7B4260342630315C00B36EDD /* SampleError.swift in Sources */,
4024+
D800B05A29707A5300B8E20F /* TestProcessInfoWrapper.swift in Sources */,
40014025
D855B3E827D652AF00BCED76 /* SentryCoreDataTrackingIntegrationTest.swift in Sources */,
40024026
D855AD62286ED6A4002573E1 /* SentryCrashTests.m in Sources */,
40034027
0A9415BA28F96CAC006A5DD1 /* TestSentryReachability.swift in Sources */,

SentryPrivate.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "SentryPrivate"
3-
s.version = "8.0.0"
3+
s.version = "8.1.0"
44
s.summary = "Sentry Private Library."
55
s.homepage = "https://github.com/getsentry/sentry-cocoa"
66
s.license = "mit"

0 commit comments

Comments
 (0)