Not Working in ios 12 and xcode 10
App crashes on GLTFUnarchiver.swift, line 1036 with a message: "Fatal error: Unexpectedly found nil while unwrapping an Optional value".
An older app built using xcode 9.x was working, but threw the same error when built on xcode 10.
I'm seeing this issue running the Mac version of the sample as well.
Fixed by making sure all relevant shaders were added to the macOS/iOS projects.
Are you referring to these?
GLTFShaderModifierSurface_pbrSpecularGlossiness_doubleSidedWorkaround.shader GLTFShaderModifierSurface_pbrSpecularGlossiness_texture_doubleSidedWorkaround.shader GLTFShaderModifierSurface_pbrSpecularGlossiness.shader
And:
GLTFShaderModifierSurface.shader GLTFShaderModifierSurface_alphaModeBlend.shader GLTFShaderModifierSurface_doubleSidedWorkaround.shader GLTFShaderModifierFragment_alphaCutoff.shader
Because I changed the target membership on them and it still doesn't work...
It actually works with iOS 12, still no success on macOS Mojave 10.14.12.
It works on iOS 12. If you are getting nil errors due to shader its because you aren't properly embedding the framework. If you aren't using a dependency manager you may have missed the build flag that is set. Did you make sure to add the build flags?
SWIFT_ACTIVE_COMPILATION_CONDITIONS" => "SEEMS_TO_HAVE_VALIDATE_VERTEX_ATTRIBUTE_BUG SEEMS_TO_HAVE_PNG_LOADING_BUG"