Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by luizssb · Oct 25, 2016 at 06:02 PM · shaderiosunity5xcode

Can't find shader on iOS - GpuProgram creation error: shader program type is unrecognised.

I'm working on an open-source Unity project and am having a hard time getting it to work properly on iOS. I don't expect people to know the application, but it's called UnityMol.

The problem I'm dealing with is that there is at least one shader (see attachment) that seems to have some kind of problem and cannot be loaded on iOS. I'm running the Xcode project built by Unity on my iPad and whenever Shader.Find() is used to find this shader, the message GpuProgram creation error: shader program type is unrecognised. You might have a precompiled shader asset from an old Unity version. is logged and I imagine the shader is not found, as the objects it should be applied upon end up pink. This same message is logged many times in the console during the build of the Xcode project, but as a warning, not an error.

From the message, it seems that I should recompile the shader - I tried it by selecting the file and choosing "Reimport" on its context menu, but it doesn't seem to have any effect. I also tried creating a new shader with the same code, but different name - again, the problem remains.

When running the application on the Unity Editor or building the application for Windows or OS X, this problem doesn't happen.

What is happening and how can I fix it?

Tools and settings:

  • Unity: 5.4.1

  • Xcode: 7.3.1

  • Device: iPad Mini 4 FK6L2LL/A (iOS 9.3.2)

  • Rendering path: Forward

  • Graphics API: Metal

  • Static Batching, Dynamic Batching, GPU Skinning, Graphics Jobs: NO

  • Scripting backend: IL2CPP

  • Target Device: iPad Only

  • Target SDK: Device SDK

  • Target Minimum iOS Version: 9.0

  • Preload Shaders: NO

None of these settings is set in stone. If it's necessary to change any of them in order to get this shader to work, there is no problem. Shader source code

stickimproved2.txt (19.6 kB)
Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image amitshah · Feb 16, 2017 at 01:38 PM 0
Share

was this ever resolved for you? Im seeing this now on one of my shaders

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by GroznyBear · Dec 28, 2016 at 10:40 AM

Try to add your shaders into 'Always included shaders' at Edit -> Project Settings -> Graphics

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by luizssb · Feb 16, 2017 at 02:27 PM

Answering amitshah's comment, this is how I ended up "fixing" the problem:

  • Disabled "Auto Graphics API";

  • Added OpenGLES3 and Metal to "Graphics API";

After this, the shader that was giving me trouble stopped doing it and executed correctly on my iPad mini 4 with iOS 9.3.2.

Here are my iOS Player Settings:


screen-shot-2017-02-16-at-122332-pm.png (272.8 kB)
Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

113 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

[HELP] Build size is way big! 0 Answers

IOS BUILD errors 1 Answer

running error: dyld: Symbol not found: __ZN14Il2CppIUnknown3IIDE unity5 to xcode8.0 0 Answers

Xcode7.3 iPad Simulator Failure 0 Answers

IOS : extension 'GL_EXT_frag_depth' is not supported 3 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges