Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/108.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Unity应用程序没有';由于着色器警告,无法在iOS上运行,并且编译器失败,XPC\u错误\u连接\u中断_Ios_Xcode_Unity3d - Fatal编程技术网

Unity应用程序没有';由于着色器警告,无法在iOS上运行,并且编译器失败,XPC\u错误\u连接\u中断

Unity应用程序没有';由于着色器警告,无法在iOS上运行,并且编译器失败,XPC\u错误\u连接\u中断,ios,xcode,unity3d,Ios,Xcode,Unity3d,我是unity的新手,尝试通过Xcode制作一个非常简单的2D游戏。一切似乎都在运行,构建也很成功。但是,它正在打印下面的错误- 2019-10-23 22:27:16.559673-0600 test4[19600:5249871] Built from '2019.2/staging' branch, Version '2019.2.9f1 (ebce4d76e6e8)', Build type 'Release', Scripting Backend 'il2cpp' 2019-1

我是unity的新手,尝试通过
Xcode
制作一个非常简单的2D游戏。一切似乎都在运行,构建也很成功。但是,它正在打印下面的错误-

2019-10-23 22:27:16.559673-0600 test4[19600:5249871] Built from '2019.2/staging' branch, Version '2019.2.9f1 (ebce4d76e6e8)', Build type 'Release', Scripting Backend 'il2cpp'
    2019-10-23 22:27:16.569618-0600 test4[19600:5249871] -> registered mono modules 0x102e52fd0
    -> applicationDidFinishLaunching()
    2019-10-23 22:27:17.523747-0600 test4[19600:5249871] Metal GPU Frame Capture Enabled
    -> applicationDidBecomeActive()
    GfxDevice: creating device client; threaded=1
    Initializing Metal device caps: Apple A12 GPU
    Initialize engine version: 2019.2.9f1 (ebce4d76e6e8)
    WARNING: Shader Unsupported: 'Hidden/Internal-GUITexture' - Pass '' has no vertex shader
    2019-10-23 22:27:20.289401-0600 test4[19600:5250073] Compiler failed with XPC_ERROR_CONNECTION_INTERRUPTED
    2019-10-23 22:27:20.301490-0600 test4[19600:5250073] Compiler failed with XPC_ERROR_CONNECTION_INTERRUPTED
    2019-10-23 22:27:20.309975-0600 test4[19600:5250073] Compiler failed with XPC_ERROR_CONNECTION_INTERRUPTED
    2019-10-23 22:27:20.310028-0600 test4[19600:5250073] MTLCompiler: Compilation failed with XPC_ERROR_CONNECTION_INTERRUPTED on 3 try
    Metal: Error creating pipeline state (Hidden/Internal-GUITexture): Compiler encountered an internal error
    (null)2019-10-23 22:27:30.388420-0600 test4[19600:5249871] Unbalanced calls to begin/end appearance transitions for <SplashScreenController: 0x105c0ab00>.
    UnloadTime: 0.146417 ms
    WARNING: Shader Unsupported: 'Hidden/BlitCopy' - Pass '' has no vertex shader
    WARNING: Shader Unsupported: 'Hidden/BlitCopy' - Setting to default shader.
    2019-10-23 22:27:31.854057-0600 test4[19600:5250073] Compiler failed with XPC_ERROR_CONNECTION_INTERRUPTED
    2019-10-23 22:27:40.897804-0600 test4[19600:5250073] Compiler failed with XPC_ERROR_CONNECTION_INTERRUPTED
    2019-10-23 22:27:50.936250-0600 test4[19600:5250073] Compiler failed with XPC_ERROR_CONNECTION_INTERRUPTED
    2019-10-23 22:27:50.936525-0600 test4[19600:5250073] MTLCompiler: Compilation failed with XPC_ERROR_CONNECTION_INTERRUPTED on 3 try
    Metal: Error creating pipeline state (UI/Default): Compiler encountered an internal error
    (null)
2019-10-23 22:27:16.559673-0600 test4[19600:5249871]根据“2019.2/staging”分支构建,版本为“2019.2.9f1(ebce4d76e6e8)”,构建类型为“Release”,脚本后端为“il2cpp”
2019-10-23 22:27:16.569618-0600测试4[19600:5249871]->注册单声道模块0x102e52fd0
->ApplicationdFinishLaunching()
2019-10-23 22:27:17.523747-0600测试4[19600:5249871]已启用金属GPU帧捕获
->ApplicationIDBecMeactive()
GfxDevice:创建设备客户端;螺纹=1
初始化金属设备帽:苹果A12 GPU
初始化发动机版本:2019.2.9f1(ebce4d76e6e8)
警告:不支持着色器:“隐藏/内部GuitTexture”-过程“”没有顶点着色器
2019-10-23 22:27:20.289401-0600 test4[19600:5250073]编译器失败,XPC\u错误\u连接\u中断
2019-10-23 22:27:20.301490-0600 test4[19600:5250073]编译器失败,XPC错误,连接中断
2019-10-23 22:27:20.309975-0600 test4[19600:5250073]编译器失败,XPC\u错误\u连接\u中断
2019-10-23 22:27:20.310028-0600测试4[19600:5250073]MTLCompiler:编译失败,XPC\u错误\u连接\u在3次尝试时中断
Metal:创建管道状态时出错(隐藏/内部GuitTexture):编译器遇到内部错误
(null)2019-10-23 22:27:30.388420-0600 test4[19600:5249871]开始/结束外观转换的不平衡调用。
卸载时间:0.146417毫秒
警告:不支持着色器:“隐藏/BlitCopy”-过程“”没有顶点着色器
警告:不支持着色器:“隐藏/BlitCopy”-设置为默认着色器。
2019-10-23 22:27:31.854057-0600 test4[19600:5250073]编译器失败,XPC\u错误\u连接\u中断
2019-10-23 22:27:40.897804-0600 test4[19600:5250073]编译器失败,XPC\u错误\u连接\u中断
2019-10-23 22:27:50.936250-0600 test4[19600:5250073]编译器失败,XPC_错误_连接_中断
2019-10-23 22:27:50.936525-0600测试4[19600:5250073]MTLCompiler:编译失败,XPC\u错误\u连接\u在3次尝试时中断
Metal:创建管道状态(UI/默认值)时出错:编译器遇到内部错误
(空)
几分钟后,黑屏变成蓝色,什么也没发生。我试图将所有着色器都设置为“不支持”,但没有成功。我找不到有类似问题的人。我发现其他人有着色器问题,但他们似乎通过切换到“不支持”来修复它。此外,该游戏在Unity上运行良好,在我的iPhone XR和Unity controller应用程序上运行良好


我使用的是Xcode 11和Unity 2.1.2。我正在尝试在我的iPhone XR上运行游戏

这似乎是MacOS Catalina的问题,这里的人正在讨论:


我的解决方案是在项目设置中将颜色空间更改为线性而不是Gamma。

Unity 2019.3b也在Android和iOS上解决了这个问题。

这很有效!很高兴能与现场直播和其他人的评论有联系。谷歌搜索了所有地方,但从未找到它,非常感谢。游戏可以运行,但UI标签/文本都是粉色块。有没有关于如何解决这个问题的想法?或者这只是Unity正在处理的同一个问题的一部分?哦,没关系。我只需要将我的项目设置>图形>“始终包含着色器”0和1切换回它们的默认值(精灵/默认值和UI/默认值)。工作完美!再次感谢!这个问题不仅适用于iOS,也适用于Android。尽管此解决方案可行,但不能将opengles 2.0与线性颜色空间一起使用。这显然限制了你的应用程序可以在多少台设备上运行。我在Unity 2020.1.13上仍然有这个问题