-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
No render on iOS simulator #2546
Comments
@MykhailoButkevych-MR just had the same issue. Can confirm that it doesn't work on a simulator but it works on a real device. |
this works on real device iphone 13 (results on spining blue cube on screen) |
Reproduced @MykhailoButkevych-MR code, ran it and experienced the same issue. However, I am not getting any sort of rendering on my iOS device when using expo go. My device is the iPhone 12 mini. (Edit) |
I've been getting this too personally. So just to clarify, is this the best pathway to rendering properly?: eas dev build -> adhoc provisioning -> install eas build on real iOS device? |
This is an upstream issue with |
Then.. what should I do? Just test on iOS devices instead? |
Does this mean the library will not work on ios devices? @CodyJasonBennett |
Yes. I better explain why below.
That's not what that means at all. XCode simulator will not push frames on OpenGL which is now deprecated on Apple platforms. Try on a real device if you can, otherwise, if this affects quality control I'd reconsider the use of this library (and by extension I've been working on moving everything to wgpu/Metal for several years now, but with the lack of support from |
This might be known already but I'll add a small trick I found: if you have a M1/M2/M3 Mac, you can build from XCode using "My Mac (Designed for iPhone)" as a target and the app will install on your Mac, open and render r3f properly. It doesn't replace building and testing on device, of course. But it might be useful for testing and debugging — more useful than the simulator at least. |
I think we should be documenting this. It's unfortunate that Apple is deprecating OpenGL since it also affects web (Chrome desktop) atm. |
There's an issue with rendering on iOS, no problem with Android though.
My setup: iPhone 12 Simulator, iOS 14.3, XCode 14, Intel cpu
Steps to reproduce:
npx create-expo-app cd my-app npx expo install expo-gl npm install three @react-three/fiber
yarn ios
As a result there's just an empty white screen, no rotating blue cube.
The text was updated successfully, but these errors were encountered: