diff --git a/Sources/Extension/AVCaptureSession+Extension.swift b/Sources/Extension/AVCaptureSession+Extension.swift index 8df04b1eb..827f64574 100644 --- a/Sources/Extension/AVCaptureSession+Extension.swift +++ b/Sources/Extension/AVCaptureSession+Extension.swift @@ -17,7 +17,7 @@ extension AVCaptureSession { } } } -#endif +#else @available(tvOS 17.0, *) extension AVCaptureSession { @@ -36,4 +36,5 @@ extension AVCaptureSession { } } } +#endif // swiftlint:enable unused_setter_value diff --git a/Sources/Mixer/AudioMixerByMultiTrack.swift b/Sources/Mixer/AudioMixerByMultiTrack.swift index aa82388c2..520d0cf8e 100644 --- a/Sources/Mixer/AudioMixerByMultiTrack.swift +++ b/Sources/Mixer/AudioMixerByMultiTrack.swift @@ -1,5 +1,6 @@ import AVFoundation import Foundation +import CoreAudio final class AudioMixerByMultiTrack: AudioMixer { private static let defaultSampleTime: AVAudioFramePosition = 0 diff --git a/Sources/Mixer/AudioMonitor.swift b/Sources/Mixer/AudioMonitor.swift index 64f09ae83..ce7eaddb4 100644 --- a/Sources/Mixer/AudioMonitor.swift +++ b/Sources/Mixer/AudioMonitor.swift @@ -2,6 +2,7 @@ import AudioUnit import AVFoundation import CoreMedia import Foundation +import CoreAudio final class AudioMonitor { var inputFormat: AVAudioFormat? { diff --git a/Sources/Mixer/AudioRingBuffer.swift b/Sources/Mixer/AudioRingBuffer.swift index 5d60856fb..4b0121f47 100644 --- a/Sources/Mixer/AudioRingBuffer.swift +++ b/Sources/Mixer/AudioRingBuffer.swift @@ -2,6 +2,7 @@ import Accelerate import AVFoundation import CoreMedia import Foundation +import CoreAudio final class AudioRingBuffer { private static let bufferCounts: UInt32 = 16 diff --git a/Sources/RTMP/RTMPStream.swift b/Sources/RTMP/RTMPStream.swift index 750dae2d7..c7c1ede71 100644 --- a/Sources/RTMP/RTMPStream.swift +++ b/Sources/RTMP/RTMPStream.swift @@ -7,7 +7,7 @@ import UIKit typealias View = UIView #endif -#if canImport(AppKit) +#if canImport(AppKit) && !targetEnvironment(macCatalyst) import AppKit typealias View = NSView #endif diff --git a/Sources/Screen/Shape.swift b/Sources/Screen/Shape.swift index 7dd343f8f..b255f022a 100644 --- a/Sources/Screen/Shape.swift +++ b/Sources/Screen/Shape.swift @@ -26,7 +26,7 @@ final class RoundedSquareShape: Shape { return nil } let path = CGPath(roundedRect: rect, cornerWidth: cornerRadius, cornerHeight: cornerRadius, transform: nil) - #if canImport(AppKit) + #if canImport(AppKit) && !targetEnvironment(macCatalyst) context.setFillColor(NSColor.white.cgColor) #endif #if canImport(UIKit)