Skip to content

Commit 970e609

Browse files
authored
Fix Mac Catalyst errors (#521)
1 parent 81a80c9 commit 970e609

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

Sources/LKObjCHelpers/LKObjcCHelpers.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ @implementation LKObjCHelpers
44

55
NS_ASSUME_NONNULL_BEGIN
66

7-
+ (void)finishBroadcastWithoutError:(RPBroadcastSampleHandler *)handler API_AVAILABLE(macos(11.0)) {
7+
+ (void)finishBroadcastWithoutError:(RPBroadcastSampleHandler *)handler API_AVAILABLE(ios(10.0), macCatalyst(13.1), macos(11.0), tvos(10.0)) {
88
// Call finishBroadcastWithError with nil error, which ends the broadcast without an error popup
99
// This is unsupported/undocumented but appears to work and is preferable to an error dialog with a cryptic default message
1010
// See https://stackoverflow.com/a/63402492 for more discussion

Sources/LKObjCHelpers/include/LKObjcHelpers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33

44
@interface LKObjCHelpers : NSObject
55

6-
+ (void)finishBroadcastWithoutError:(RPBroadcastSampleHandler *)handler API_AVAILABLE(macos(11.0));
6+
+ (void)finishBroadcastWithoutError:(RPBroadcastSampleHandler *)handler API_AVAILABLE(ios(10.0), macCatalyst(13.1), macos(11.0), tvos(10.0));
77

88
@end

Sources/LiveKit/Broadcast/Uploader/LKSampleHandler.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import ReplayKit
2222

2323
import LKObjCHelpers
2424

25+
@available(macCatalyst 13.1, *)
2526
open class LKSampleHandler: RPBroadcastSampleHandler {
2627
private var clientConnection: BroadcastUploadSocketConnection?
2728
private var uploader: SampleUploader?

0 commit comments

Comments
 (0)