Search Unity

Ios: shader is not supported on this GPU

Discussion in 'iOS and tvOS' started by Andy_liu, Oct 10, 2019.

  1. Andy_liu

    Andy_liu

    Joined:
    Oct 27, 2014
    Posts:
    26
    I got this error in the xcode, and appear nothing on the device:

    shader is not supported on this GPU

    and many orther warnings and errors

    I use xcode:11.1 unity:2019.2.8f1 osx:10.15

    anybody can help me?
     
  2. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,794
    Is there actually something wrong or do you just get the warning?
     
  3. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,443
    can you show some parts of the shader or what it does?
    what other errors there are?
     
  4. Andy_liu

    Andy_liu

    Joined:
    Oct 27, 2014
    Posts:
    26
    2019-10-11 10:21:13.088872+0800 TryTry[6366:524293] Built from '2019.2/staging' branch, Version '2019.2.8f1 (ff5b465c8d13)', Build type 'Release', Scripting Backend 'il2cpp'

    2019-10-11 10:21:13.092348+0800 TryTry[6366:524293] -> registered mono modules 0x105ec63c0

    -> applicationDidFinishLaunching()

    2019-10-11 10:21:13.299997+0800 TryTry[6366:524293] Metal GPU Frame Capture Enabled

    -> applicationDidBecomeActive()

    [XR] Discovering subsystems at path /private/var/containers/Bundle/Application/883952ED-1FA0-4435-8BDD-B60024769C03/TryTry.app/Data/UnitySubsystems

    [XR] No descriptors matched for examples in UnitySubsystems/UnityARKit/UnitySubsystemsManifest.json.

    [XR] 1 'inputs' descriptors matched in UnitySubsystems/UnityARKit/UnitySubsystemsManifest.json

    [XR] No descriptors matched for cameras in UnitySubsystems/UnityARKit/UnitySubsystemsManifest.json.

    [XR] No descriptors matched for displays in UnitySubsystems/UnityARKit/UnitySubsystemsManifest.json.

    [XR] No descriptors matched for depths in UnitySubsystems/UnityARKit/UnitySubsystemsManifest.json.

    [XR] No descriptors matched for meshings in UnitySubsystems/UnityARKit/UnitySubsystemsManifest.json.

    [XR] No descriptors matched for planes in UnitySubsystems/UnityARKit/UnitySubsystemsManifest.json.

    [XR] No descriptors matched for raycasts in UnitySubsystems/UnityARKit/UnitySubsystemsManifest.json.

    [XR] No descriptors matched for referencePoints in UnitySubsystems/UnityARKit/UnitySubsystemsManifest.json.

    [XR] No descriptors matched for sessions in UnitySubsystems/UnityARKit/UnitySubsystemsManifest.json.

    [XR] No descriptors matched for experience in UnitySubsystems/UnityARKit/UnitySubsystemsManifest.json.

    [XR] No descriptors matched for gestures in UnitySubsystems/UnityARKit/UnitySubsystemsManifest.json.

    GfxDevice: creating device client; threaded=1

    Initializing Metal device caps: Apple A11 GPU

    Initialize engine version: 2019.2.8f1 (ff5b465c8d13)

    The referenced script (Unknown) on this Behaviour is missing!


    (Filename: ./Runtime/Scripting/ManagedReference/SerializableManagedRef.cpp Line: 199)


    The referenced script on this Behaviour (Game Object '<null>') is missing!


    (Filename: ./Runtime/Mono/ManagedMonoBehaviourRef.cpp Line: 334)


    A scripted object (probably UnityEngine.XR.ARCore.ARCoreLoaderSettings?) has a different serialization layout when loading. (Read 56 bytes but expected 60 bytes)

    Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of your scripts?


    (Filename: ./Runtime/Serialize/SerializedFile.cpp Line: 2135)


    WARNING: Shader Unsupported: 'Unlit/ARKitBackground' - Pass '' has no vertex shader

    ERROR: Shader Shader is not supported on this GPU (none of subshaders/fallbacks are suitable)WARNING: Shader Unsupported: 'Unlit/ARKitBackground' - Setting to default shader.

    XRGeneral Settings awakening...

    UnityEngine.XR.Management.XRGeneralSettings:Awake()


    (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)


    2019-10-11 10:21:15.585286+0800 TryTry[6366:524293]

    // 2D joint skeleton

    enum JointIndices

    {

    Invalid = -1,

    Head = 0, // parent: Neck1 [1]

    Neck1 = 1, // parent: Root [16]

    RightShoulder1 = 2, // parent: Neck1 [1]

    RightForearm = 3, // parent: RightShoulder1 [2]

    RightHand = 4, // parent: RightForearm [3]

    LeftShoulder1 = 5, // parent: Neck1 [1]

    LeftForearm = 6, // parent: LeftShoulder1 [5]

    LeftHand = 7, // parent: LeftForearm [6]

    RightUpLeg = 8, // parent: Root [16]

    RightLeg = 9, // parent: RightUpLeg [8]

    RightFoot = 10, // parent: RightLeg [9]

    LeftUpLeg = 11, // parent: Root [16]

    LeftLeg = 12, // parent: LeftUpLeg [11]

    LeftFoot = 13, // parent: LeftLeg [12]

    RightEye = 14, // parent: Head [0]

    LeftEye = 15, // parent: Head [0]

    Root = 16, // parent: <none> [-1]

    }

    2019-10-11 10:21:15.603555+0800 TryTry[6366:524293]

    // 3D joint skeleton

    enum JointIndices

    {

    Invalid = -1,

    Root = 0, // parent: <none> [-1]

    Hips = 1, // parent: Root [0]

    LeftUpLeg = 2, // parent: Hips [1]

    LeftLeg = 3, // parent: LeftUpLeg [2]

    LeftFoot = 4, // parent: LeftLeg [3]

    LeftToes = 5, // parent: LeftFoot [4]

    LeftToesEnd = 6, // parent: LeftToes [5]

    RightUpLeg = 7, // parent: Hips [1]

    RightLeg = 8, // parent: RightUpLeg [7]

    RightFoot = 9, // parent: RightLeg [8]

    RightToes = 10, // parent: RightFoot [9]

    RightToesEnd = 11, // parent: RightToes [10]

    Spine1 = 12, // parent: Hips [1]

    Spine2 = 13, // parent: Spine1 [12]

    Spine3 = 14, // parent: Spine2 [13]

    Spine4 = 15, // parent: Spine3 [14]

    Spine5 = 16, // parent: Spine4 [15]

    Spine6 = 17, // parent: Spine5 [16]

    Spine7 = 18, // parent: Spine6 [17]

    LeftShoulder1 = 19, // parent: Spine7 [18]

    LeftArm = 20, // parent: LeftShoulder1 [19]

    LeftForearm = 21, // parent: LeftArm [20]

    LeftHand = 22, // parent: LeftForearm [21]

    LeftHandIndexStart = 23, // parent: LeftHand [22]

    LeftHandIndex1 = 24, // parent: LeftHandIndexStart [23]

    LeftHandIndex2 = 25, // parent: LeftHandIndex1 [24]

    LeftHandIndex3 = 26, // parent: LeftHandIndex2 [25]

    LeftHandIndexEnd = 27, // parent: LeftHandIndex3 [26]

    LeftHandMidStart = 28, // parent: LeftHand [22]

    LeftHandMid1 = 29, // parent: LeftHandMidStart [28]

    LeftHandMid2 = 30, // parent: LeftHandMid1 [29]

    LeftHandMid3 = 31, // parent: LeftHandMid2 [30]

    LeftHandMidEnd = 32, // parent: LeftHandMid3 [31]

    LeftHandPinkyStart = 33, // parent: LeftHand [22]

    LeftHandPinky1 = 34, // parent: LeftHandPinkyStart [33]

    LeftHandPinky2 = 35, // parent: LeftHandPinky1 [34]

    LeftHandPinky3 = 36, // parent: LeftHandPinky2 [35]

    LeftHandPinkyEnd = 37, // parent: LeftHandPinky3 [36]

    LeftHandRingStart = 38, // parent: LeftHand [22]

    LeftHandRing1 = 39, // parent: LeftHandRingStart [38]

    LeftHandRing2 = 40, // parent: LeftHandRing1 [39]

    LeftHandRing3 = 41, // parent: LeftHandRing2 [40]

    LeftHandRingEnd = 42, // parent: LeftHandRing3 [41]

    LeftHandThumbStart = 43, // parent: LeftHand [22]

    LeftHandThumb1 = 44, // parent: LeftHandThumbStart [43]

    LeftHandThumb2 = 45, // parent: LeftHandThumb1 [44]

    LeftHandThumbEnd = 46, // parent: LeftHandThumb2 [45]

    Neck1 = 47, // parent: Spine7 [18]

    Neck2 = 48, // parent: Neck1 [47]

    Neck3 = 49, // parent: Neck2 [48]

    Neck4 = 50, // parent: Neck3 [49]

    Head = 51, // parent: Neck4 [50]

    Jaw = 52, // parent: Head [51]

    Chin = 53, // parent: Jaw [52]

    LeftEye = 54, // parent: Head [51]

    LeftEyeLowerLid = 55, // parent: LeftEye [54]

    LeftEyeUpperLid = 56, // parent: LeftEye [54]

    LeftEyeball = 57, // parent: LeftEye [54]

    Nose = 58, // parent: Head [51]

    RightEye = 59, // parent: Head [51]

    RightEyeLowerLid = 60, // parent: RightEye [59]

    RightEyeUpperLid = 61, // parent: RightEye [59]

    RightEyeball = 62, // parent: RightEye [59]

    RightShoulder1 = 63, // parent: Spine7 [18]

    RightArm = 64, // parent: RightShoulder1 [63]

    RightForearm = 65, // parent: RightArm [64]

    RightHand = 66, // parent: RightForearm [65]

    RightHandIndexStart = 67, // parent: RightHand [66]

    RightHandIndex1 = 68, // parent: RightHandIndexStart [67]

    RightHandIndex2 = 69, // parent: RightHandIndex1 [68]

    RightHandIndex3 = 70, // parent: RightHandIndex2 [69]

    RightHandIndexEnd = 71, // parent: RightHandIndex3 [70]

    RightHandMidStart = 72, // parent: RightHand [66]

    RightHandMid1 = 73, // parent: RightHandMidStart [72]

    RightHandMid2 = 74, // parent: RightHandMid1 [73]

    RightHandMid3 = 75, // parent: RightHandMid2 [74]

    RightHandMidEnd = 76, // parent: RightHandMid3 [75]

    RightHandPinkyStart = 77, // parent: RightHand [66]

    RightHandPinky1 = 78, // parent: RightHandPinkyStart [77]

    RightHandPinky2 = 79, // parent: RightHandPinky1 [78]

    RightHandPinky3 = 80, // parent: RightHandPinky2 [79]

    RightHandPinkyEnd = 81, // parent: RightHandPinky3 [80]

    RightHandRingStart = 82, // parent: RightHand [66]

    RightHandRing1 = 83, // parent: RightHandRingStart [82]

    RightHandRing2 = 84, // parent: RightHandRing1 [83]

    RightHandRing3 = 85, // parent: RightHandRing2 [84]

    RightHandRingEnd = 86, // parent: RightHandRing3 [85]

    RightHandThumbStart = 87, // parent: RightHand [66]

    RightHandThumb1 = 88, // parent: RightHandThumbStart [87]

    RightHandThumb2 = 89, // parent: RightHandThumb1 [88]

    RightHandThumbEnd = 90, // parent: RightHandThumb2 [89]

    }

    [XR] Loading plugin UnityARKit for subsystem ARKit-Input...

    [XR] UnityARKit successfully registered Provider for ARKit-Input

    WARNING: Shader Unsupported: 'Hidden/Internal-GUITexture' - Pass '' has no vertex shader

    WARNING: Shader Unsupported: 'Hidden/Internal-GUITexture' - Pass '' has no vertex shader

    WARNING: Shader Unsupported: 'Hidden/Internal-GUITexture' - Setting to default shader.

    2019-10-11 10:21:16.275290+0800 TryTry[6366:524293] Unbalanced calls to begin/end appearance transitions for <SplashScreenController: 0x155903840>.

    UnloadTime: 0.465250 ms

    https://api.trytryar.com/User/Login.php

    <Post>d__2:MoveNext()

    UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

    StartManager:JoinWeb()


    (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)


    https://api.trytryar.com/Version/getVersion.php

    <Post>d__2:MoveNext()

    UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)


    (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)


    2019-10-11 10:21:16.810250+0800 TryTry[6366:524577] Compiler failed with XPC_ERROR_CONNECTION_INTERRUPTED

    2019-10-11 10:21:16.820563+0800 TryTry[6366:524577] Compiler failed with XPC_ERROR_CONNECTION_INTERRUPTED

    2019-10-11 10:21:16.830516+0800 TryTry[6366:524577] Compiler failed with XPC_ERROR_CONNECTION_INTERRUPTED

    2019-10-11 10:21:16.830624+0800 TryTry[6366:524577] MTLCompiler: Compilation failed with XPC_ERROR_CONNECTION_INTERRUPTED on 3 try

    Metal: Error creating pipeline state (Skybox/Procedural): Compiler encountered an internal error

    (null)Setting up 1 worker threads for Enlighten.

    Thread -> id: 16d437000 -> priority: 1

    <Post>d__2:MoveNext()

    UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)


    (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)


    1.0

    StartManager:<JoinWeb>b__7_2(JSONObject)

    System.Action`1:Invoke(T)

    <Post>d__2:MoveNext()

    UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)


    (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)


    <Post>d__2:MoveNext()

    UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)


    (Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)


    Unloading 6 Unused Serialized files (Serialized files now loaded: 0)

    2019-10-11 10:21:26.871862+0800 TryTry[6366:524577] Compiler failed to build request

    Metal: Error creating pipeline state (UI/Default): output of type half4 is not compatible with a MTLPixelFormatInvalid color attachement.

    (null)WARNING: Shader Unsupported: 'Custom/BackBlur' - Pass 'BackBlurHor' has no vertex shader

    WARNING: Shader Unsupported: 'Custom/BackBlur' - All passes removed

    WARNING: Shader Did you use #pragma only_renderers and omit this platform?

    ERROR: Shader Shader is not supported on this GPU (none of subshaders/fallbacks are suitable)WARNING: Shader Unsupported: 'Custom/BackBlur' - Setting to default shader.

    UnloadTime: 3.027417 ms


    Unloading 5 unused Assets to reduce memory usage. Loaded Objects now: 1168.

    Total: 1.102792 ms (FindLiveObjects: 0.335875 ms CreateObjectMapping: 0.023750 ms MarkObjects: 0.709417 ms DeleteObjects: 0.033250 ms)
     
  5. Andy_liu

    Andy_liu

    Joined:
    Oct 27, 2014
    Posts:
    26
    I have solved this problem. by turn Color Space from Gamma to Linear, But I dont`t konw why, it worked well before.
     
    alexwayneapps likes this.
  6. Deleted User

    Deleted User

    Guest

  7. samjonesmw

    samjonesmw

    Joined:
    Oct 4, 2019
    Posts:
    2
    still have this problem on Catalina even on unity beta :/
     
  8. Deleted User

    Deleted User

    Guest

    Try deleting cached files(Temp/Library/obj) folders and/or AssetBundle for iOS.
     
  9. samjonesmw

    samjonesmw

    Joined:
    Oct 4, 2019
    Posts:
    2
    Got it working - was user error :) Thank you!
     
  10. icetear

    icetear

    Joined:
    Dec 29, 2011
    Posts:
    24
    I have the same error and don't know how to solve it. What did you do?
     
  11. cityoflondonconsulting

    cityoflondonconsulting

    Joined:
    Jun 6, 2017
    Posts:
    1
    Screenshot 2019-12-02 at 14.49.02.png

    I got it to build on iOS 13.

    Unity menu > File > Build Preferences
    click on Player settings
    iOS tab - Settings for iOS
    Rendering section
    Color space drop down
    Change from Gamma to Linear
    uncheck Auto Graphics API
    Graphics api list will show Metal only
    Build and Run
    Replace whole project
    and it built on iPhone 11 Pro with iOS 13.4


    Note: I'm an iOS dev learning Unity.
    This got a very basic cube on plane with one material to build.

    Note: the app built the first time in XCode
    I generated the XCode project the first time
    I had to set the Team to sign the app with.
    And it built and ran on iPhone 11 Pro with iOS 13.4

    I copied the team signing id FPJ********GN into Unity > Player settings > ios > Signing Team Id

    Only when I regenerated it did I get this shader error
    I replaced the whole build folder so not sure why it worked the first time
    I did change the Other Settings
    Bundle Identifier
    And
    Signing Team id.
    So maybe editing those changes some default which causes this issue.?
     
  12. tranvantam87

    tranvantam87

    Joined:
    May 11, 2015
    Posts:
    1
    THanks, it's worked!
     
  13. fitz5487

    fitz5487

    Joined:
    Apr 1, 2014
    Posts:
    1
    This is the only solution I've found that works, including those offered officially from Unity.
     
  14. buraktaha01

    buraktaha01

    Joined:
    Feb 24, 2018
    Posts:
    1

    Finally!!! Thank you so much, I was waiting for that moment for weeks :D
     
  15. lemonbuzz

    lemonbuzz

    Joined:
    Jan 21, 2020
    Posts:
    2
    Hi, thanks for the help. I tried what you suggested, however as soon as I choose "Linear", my Unity editor acts strange and is rendered unusable. see the screenshot. Greenshot 2020-01-20 19.29.32.png
     
  16. lemonbuzz

    lemonbuzz

    Joined:
    Jan 21, 2020
    Posts:
    2
    Got it working by switching back and forth between "PC, Mac & Linux Standalone" and "iOS".
    Thank you it now works perfectly :)