Workaround build phase for lack of Metal support on the simulator.
Fixing warnings.