gorastudio-git / SCNRecorder

The best way to record your AR experience!
MIT License
201 stars 51 forks source link

RealityKit in Deployment target below iOS 13 #48

Closed frank-1992 closed 2 years ago

frank-1992 commented 2 years ago

when I try to use SCNRecorder, it crashed

  1. set the project deployment target below iOS 13
  2. import RealityKit and write add code " @available(iOS 13.0, *) " in UIViewController class
  3. init a Entity class or ModelEntity class ( let _ = Entity() )
  4. start to run the project and it will crash in iOS 13 and iOS 14 but iOS 15 is OK, very strange (you can run my demo) do you know how to solve this problem , I think it is apple's bug. how do you think , hope you can reply , thank you
v-grigoriev commented 2 years ago

Hi @frank-1992, what demo do you mean?

Is the issue reproducible only when SCNRecorder is added? Just SCNRecorder itself doesn't have any references to RealityKit.

Can you try commenting out all SCNRecorder integration code firstly? Will the problem go away?

frank-1992 commented 2 years ago

Hi, thanks for your reply, I found that when I import RealityKit , it will cause this problem , SceneKit and ARKit is ok, if convenient , run my demo please. Very thank you, by the way , your framework is very great.(😁) https://github.com/frank-1992/realityKit-crash

v-grigoriev commented 2 years ago

yeah, it looks like apple's bug without a solution.

https://stackoverflow.com/questions/71000365/realitykit-app-and-lower-ios-deployment-target https://stackoverflow.com/questions/71110031/realitykit-feature-crashes-on-ios-13-4-1-but-works-in-15-2

frank-1992 commented 2 years ago

yes, i think so. I think you can close the issue, thank you.