Describe the bug
Methane applications built for iOS fail to run natively on MacOS with Apple Silicon with error:
[CAMetalLayer nextDrawable] returning nil because device is nil.
Steps To Reproduce
Steps to reproduce the behavior:
Build for iOS device: ./Build/Unix/Build.sh --apple-platform OS64 --apple-dev-team 43335E8AZR.
Open generated Xcode workspace from ./Build/Output/Xcode/OS64/MT-Release/Build/METHANE_KIT.xcodeproj.
Automatically generate schemas and select MethaneShadowCube application from the schemas drop-down in Xcode.
Select deployment target My Mac (Designed for iPhone) to the right of schema.
Press Run button in Xcode and see warning and error messages in Xcode log window:
MethaneShadowCube[10910:2972780] [CAMetalLayer nextDrawable] returning nil because device is nil.
-[MTLDebugRenderCommandEncoder setRenderPipelineState:]:1580: failed assertion `Set Render Pipeline State Validation
For color attachment 0, the renderPipelineState pixelFormat must be MTLPixelFormatInvalid, as no texture is set.
the pipelineState's per sample imageBlock usage(4) is greater than the encoder's perSample imageBlock usage(0)'
Program ended with exit code: 9
Expected behavior
iOS application should run normally on MacOS, similarly as it runs on iOS device or simulator.
Desktop (please complete the following information):
Describe the bug Methane applications built for iOS fail to run natively on MacOS with Apple Silicon with error:
Steps To Reproduce Steps to reproduce the behavior:
./Build/Unix/Build.sh --apple-platform OS64 --apple-dev-team 43335E8AZR
../Build/Output/Xcode/OS64/MT-Release/Build/METHANE_KIT.xcodeproj
.MethaneShadowCube
application from the schemas drop-down in Xcode.My Mac (Designed for iPhone)
to the right of schema.Run
button in Xcode and see warning and error messages in Xcode log window:Expected behavior iOS application should run normally on MacOS, similarly as it runs on iOS device or simulator.
Desktop (please complete the following information):