Unable to find mtl file warning

Since updating to Xcode 11 I get a warning for every file I load:


Unable to find mtl file file:///private/var/containers/Bundle/Application/.../....app/file-name.mtl


I don't use material files for any of my models. Is there any way to silence this warning? Or pass a flag telling the Model I/O method to ignore this?

Replies

Any solution to this? Very spammy logs for something that has no effect, as materials are assigned in code.

Hi,


I had the same problem, I found out if you open your .obj file with a text editor and remove the line near the top:


mtllib name.mtl


It goes away.