XCode中用于IOS模拟器的Unity3D构建在控制台Renderer:Null Device中显示黑屏和错误



我已经在XCode中尝试解决模拟器的问题3天了,当我在成功构建后尝试在iPhone模拟器中运行该项目时,我只是在控制台中遇到了一个黑屏,问题无论如何都无法解决,我试着将Unity版本更改为2019.3、2020.3 LTS、2021 LTS、2023.1,SDK在播放器设置中我使用模拟器SDK。错误全文:

2022-09-12 15:07:15.823493-0700 TestProject3[7410:222456] Built from 'trunk' branch, Version '2023.1.0a9 (b67b5a2b1f70)', Build type 'Development', Scripting Backend 'il2cpp'
2022-09-12 15:07:15.832430-0700 TestProject3[7410:222456] MemoryManager: Using 'Dynamic Heap' Allocator.
[UnityMemory] Configuration Parameters - Can be set up in boot.config
"memorysetup-bucket-allocator-granularity=16"
"memorysetup-bucket-allocator-bucket-count=8"
"memorysetup-bucket-allocator-block-size=4194304"
"memorysetup-bucket-allocator-block-count=1"
"memorysetup-main-allocator-block-size=16777216"
"memorysetup-thread-allocator-block-size=16777216"
"memorysetup-gfx-main-allocator-block-size=16777216"
"memorysetup-gfx-thread-allocator-block-size=16777216"
"memorysetup-cache-allocator-block-size=4194304"
"memorysetup-typetree-allocator-block-size=2097152"
"memorysetup-profiler-bucket-allocator-granularity=16"
"memorysetup-profiler-bucket-allocator-bucket-count=8"
"memorysetup-profiler-bucket-allocator-block-size=4194304"
"memorysetup-profiler-bucket-allocator-block-count=1"
"memorysetup-profiler-allocator-block-size=16777216"
"memorysetup-profiler-editor-allocator-block-size=1048576"
"memorysetup-temp-allocator-size-main=4194304"
"memorysetup-job-temp-allocator-block-size=2097152"
"memorysetup-job-temp-allocator-block-size-background=1048576"
"memorysetup-job-temp-allocator-reduction-small-platforms=262144"
"memorysetup-temp-allocator-size-background-worker=32768"
"memorysetup-temp-allocator-size-job-worker=262144"
"memorysetup-temp-allocator-size-preload-manager=262144"
"memorysetup-temp-allocator-size-nav-mesh-worker=65536"
"memorysetup-temp-allocator-size-audio-worker=65536"
"memorysetup-temp-allocator-size-cloud-worker=32768"
"memorysetup-temp-allocator-size-gfx=262144"
-> applicationDidFinishLaunching()
Found 1 interfaces on host : 0) 192.168.137.129
Multi-casting "[IP] 192.168.137.129 [Port] 55000 [Flags] 2 [Guid] 474707957 [EditorId] 0 [Version] 1048832 [Id] iPhonePlayer(8,MacBook-Pro-Dima.local):56000 [Debug] 0 [PackageName] iPhonePlayer [ProjectName] <no name>" to [225.0.0.222:54997]...
On Simulator, Metal is supported only from iOS 13, and it requires at least macOS 10.15 and Xcode 11. Setting no graphics device.

Setting UIViewControllerBasedStatusBarAppearance to NO is no longer supported.
Apple actively discourages that, and all application-wide methods of changing status bar appearance are deprecated

-> applicationDidBecomeActive()
[Subsystems] Discovering subsystems at path /Users/dima/Library/Developer/CoreSimulator/Devices/F93E4CD4-55F0-4D67-BE1E-BEFD20B29DA2/data/Containers/Bundle/Application/F1B3FD1E-5029-4330-B6A5-ED8A58EE6E67/TestProject3.app/Data/UnitySubsystems
GfxDevice: creating device client; threaded=1; jobified=0
NullGfxDevice:
Version:  NULL 1.0 [1.0]
Renderer: Null Device
Vendor:   Unity Technologies
Initialize engine version: 2023.1.0a9 (b67b5a2b1f70)
2022-09-12 15:07:16.716288-0700 TestProject3[7410:222760] [plugin] AddInstanceForFactory: No factory registered for id <CFUUID 0x600002578820> F8BB3C25-BAE8-11D5-9C31-00034315CD46
ERROR: Shader Hidden/Universal Render Pipeline/Sampling shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
ERROR: Shader Hidden/Universal Render Pipeline/LutBuilderLdr shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
ERROR: Shader Hidden/Universal Render Pipeline/LutBuilderHdr shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
ERROR: Shader Hidden/Universal Render Pipeline/UberPost shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
ERROR: Shader Hidden/Universal Render Pipeline/Debug/DebugReplacement shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
ERROR: Shader Hidden/Light2D-Shape shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
ERROR: Shader Hidden/Light2D-Shape-Volumetric shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
ERROR: Shader Hidden/Light2D-Point shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
ERROR: Shader Hidden/Light2d-Point-Volumetric shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
ERROR: Shader Hidden/ShadowProjected2D shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
ERROR: Shader Hidden/Shadow2DShadowSprite shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
ERROR: Shader Hidden/Shadow2DUnshadowSprite shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
ERROR: Shader Hidden/Shadow2DUnshadowGeometry shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
WARNING: Shader Unsupported: 'Hidden/Universal Render Pipeline/FallbackError' - All subshaders removed
WARNING: Shader Did you use #pragma only_renderers and omit this platform?
WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
ERROR: Shader Hidden/Universal Render Pipeline/FallbackError shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
WARNING: Shader Unsupported: 'Hidden/Universal Render Pipeline/FallbackError' - All subshaders removed
WARNING: Shader Did you use #pragma only_renderers and omit this platform?
WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
ERROR: Shader Hidden/Universal Render Pipeline/Stop NaN shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
ERROR: Shader Hidden/Universal Render Pipeline/SubpixelMorphologicalAntialiasing shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
ERROR: Shader Hidden/Universal Render Pipeline/GaussianDepthOfField shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
ERROR: Shader Hidden/Universal Render Pipeline/BokehDepthOfField shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
ERROR: Shader Hidden/Universal Render Pipeline/CameraMotionBlur shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
ERROR: Shader Hidden/Universal Render Pipeline/PaniniProjection shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
ERROR: Shader Hidden/Universal Render Pipeline/Bloom shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
ERROR: Shader Hidden/Universal Render Pipeline/TemporalAA shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
ERROR: Shader Hidden/Universal Render Pipeline/LensFlareDataDriven shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
ERROR: Shader Hidden/Universal Render Pipeline/Scaling Setup shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
ERROR: Shader Hidden/Universal Render Pipeline/Edge Adaptive Spatial Upsampling shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
ERROR: Shader Hidden/Universal Render Pipeline/FinalPost shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
ERROR: Shader Sprites/Default shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
ERROR: Shader Sprites/Mask shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
WARNING: Shader Unsupported: 'Universal Render Pipeline/Lit' - All subshaders removed
WARNING: Shader Did you use #pragma only_renderers and omit this platform?
WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
ERROR: Shader Universal Render Pipeline/Lit shader is not supported on this GPU (none of subshaders/fallbacks are suitable)
WARNING: Shader Unsupported: 'Universal Render Pipeline/Lit' - All subshaders removed
WARNING: Shader Did you use #pragma only_renderers and omit this platform?
WARNING: Shader If subshaders removal was intentional, you may have forgotten turning Fallback off?
UnloadTime: 0.939870 ms
2022-09-12 15:07:17.413547-0700 TestProject3[7410:222456] Unbalanced calls to begin/end appearance transitions for <SplashScreenController: 0x7f8f71f77bc0>.

我也试过使用BuildIn,那里也是一样的,请帮忙。P.S生成服务器复选框被禁用。

在模拟器上,Metal仅从iOS 13支持,并且需要至少macOS 10.15和Xcode 11。未设置图形设备

如果可能,请将所有软件更新到所需版本,否则将无法在模拟器上运行游戏。

最新更新