Compiling and running metal examples

It has been a while since I used Xcode, but since Apple revised Xcode 6 and the new Metal API, I had to check it.

They released examples, for example. converted version of their Basic3D example. However, I am having problems compiling and running them. I had to add paths to the Quatz and Metal structures for compilation and reference to work - I thought that I had to work out of the box with the built-in libraries?

In addition, the metal shader compilation step fails; it cannot find the metal compiler. Where in Xcode is this path setting?

If I ignore the shader compilation step, I get an error that the application will not run on any of the simulators. Can metal-based 3D applications work only on real hardware, and not in simulator mode?

+8
ios xcode6 metal
source share
2 answers

You cannot run metal on a simulator, but you can use this workaround so that it will still be compiled as long as you have a reserve for the code.

http://medium.com/@jscampbell/bare-metal-working-with-metal-and-the-simulator-70e085e3a45

0
source share

According to employees on the Apple dev forums, Metal does not start in the simulator.

See: https://devforums.apple.com/message/971605#971605

If you look at other application samples / templates, there is no need to explicitly link any framework, indeed, everything comes out of the box.

+5
source share

All Articles