Xcode 14 protocol-constrained type error
Closed this issue · 1 comments
ozgurshn commented
When I try to build my app with Xcode 14 using 2.7 version of SCNRecorder pod, it gives this error strangely:
Non-protocol, non-class type 'Self.Audio' cannot be used within a protocol-constrained type
If I use the underline protocol names intead of the typealias, compiler builds without a problem
typealias SampleBufferAudio = AudioMediaSessionInput & SampleBufferInput
typealias SampleBufferVideo = VideoMediaSessionInput & SampleBufferInput
typealias PixelBufferVideo = VideoMediaSessionInput & BufferInput