Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xcode 14 protocol-constrained type error #50

Closed
ozgurshn opened this issue Sep 26, 2022 · 1 comment
Closed

Xcode 14 protocol-constrained type error #50

ozgurshn opened this issue Sep 26, 2022 · 1 comment

Comments

@ozgurshn
Copy link

ozgurshn commented Sep 26, 2022

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
Screen Shot 2022-09-26 at 17 58 38
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

@ozgurshn
Copy link
Author

ozgurshn commented Sep 26, 2022

I just saw it's fixed in this commit 4852995 . Maybe a new release can be published with this version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant