-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
🐛 in iOS 18, onPreviewStarted is no longer called when switching devices #3226
Comments
Guten Tag, Hans here! 🍻 Thanks for your detailed issue report. It looks like you have provided a lot of useful information. However, I see that you did not attempt to reproduce the issue in the VisionCamera Example app. This step is quite important to help identify if the problem is specific to your setup or a broader bug. Please give it a try and let us know if the issue persists. If so, it would also be helpful to share any additional logs from Xcode when reproducing the issue, which can be gathered from the Xcode console while running your app. This can aid mrousavy in diagnosing the problem more efficiently. If you're finding this project helpful, consider supporting it by sponsoring mrousavy here!
|
@mrousavy I attempted to build the example app, but the build fails with the following error: |
Delete your |
Thanks — the build still fails with a similar error. Here is the full build log:
|
What's happening?
In iOS 17, switching between front and back cameras results in
onPreviewStopped
being invoked, followed byonPreviewStarted
. In iOS 18, neither method is invoked when switching cameras.Reproduceable Code
Relevant log output
Camera Device
Device
iPhone 15 Pro (iOS 18.0.1)
VisionCamera Version
4.3.2
Can you reproduce this issue in the VisionCamera Example app?
I didn't try (⚠️ your issue might get ignored & closed if you don't try this)
Additional information
The text was updated successfully, but these errors were encountered: