EXC_BREAKPOINT when using VideoRendererView and Swift 6
What did you do?
i've been experimenting with Stream for video calling.
one thing that will be
important for us is the ability to roll our own custom UI.
i've been playing around with something super basic
- setting up a
StreamVideousing the test credentials provided in the docs - creating a call
- joining the call
- using
VideoRendererViewto display the participants
What did you expect to happen?
the VideoRendererView's to render the video.
What happened instead?
EXC_BREAKPOINT (code=1, subcode=0x1016e2f18)
VideoRendererView
line: 149
after some poking around, i found that this crash only happens when Swift 6 is chosen.
it works fine on Swift 5.
i've attached a demo project.
if you build on Swift 6, you'll get the crash, but when you build with Swift 5 it'll work.
GetStream Environment
GetStream Video version: 1.31.0
GetStream Video frameworks: StreamVideo, StreamVideoSwiftUI
iOS version:
Tested on iOS26 and iOS18
Swift version:
- 5 (works fine)
- 6 (crashes)
Xcode version:
- 26
Device:
iPhone 16
Additional context
Hey @reddavis,
Thanks for reaching out with this issue. You are absolutely and unfortunately - even though we have started the Swift 6 migration on our side - we haven't completed it.
It's now one of our priorities so you can expect that fixed in the following releases.
I'm sorry for the inconvenience and I'm glad that there is a workaround for now, while we finalise the migration.
Best regards, Ilias
Hey @ipavlidakis !
Hope you had a great week, anything you can share from your end on how the migration is going?
Hey @estephinson, I have no updates yet to share here as we are focusing on some other stuff. Our goal is this quarter. I'll keep you posted.
Best regards, Ilias