Notes Create a command line target in xcode either in Swift or Obj-C. add a metal file to the project and copy and paste the respective code into each file.