App crashes when trying to load .obj file

I am getting a strange error while loading a custom object in sceneview. The application works normally with primitive models. I have an obj file which I try to load in the sceneview and it shows pink screen repeatedly throws error Scenekit index out of capacity. It hangs the whole app and xcode. I get this obj file from server and store it locally in the app in file manager. Please help. I am using Xcode 10 and ios 12 iphone.

Replies

Hi we can load obj file in arkit i have done in my project its working.find below code to load obj file.


SCNScene * scene = [SCNScene sceneWithURL:self.objPathURL options:nil error:&error];

Note:-

# self.objPathURL will be you 3D model .Obj file path.