Skip to content
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

Not Working in ios 12 and xcode 10 #18

Open
nikunjarora12345 opened this issue Jun 19, 2018 · 5 comments
Open

Not Working in ios 12 and xcode 10 #18

nikunjarora12345 opened this issue Jun 19, 2018 · 5 comments

Comments

@nikunjarora12345
Copy link

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.

@ThomasJones
Copy link

I'm seeing this issue running the Mac version of the sample as well.

gltf_xcodebeta10_crash

@daametsi
Copy link

screen shot 2018-06-22 at 3 51 05 pm

screen shot 2018-06-22 at 3 50 56 pm

Fixed by making sure all relevant shaders were added to the macOS/iOS projects.

@mihaierosx2
Copy link

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...

@mihaierosx2
Copy link

It actually works with iOS 12, still no success on macOS Mojave 10.14.12.

@digitallysavvy
Copy link

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"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants