swift - Metal Framework not recognized -
i'm following tutorial on metal/metalkit. have not developed osx before, bit new me.
pretty banal problem, i'm having right start is, xcode (7.2) not recognize, metal
imported. or in way does, doesn't allow me use it's contents.
this content of viewcontroller.swift
:
import cocoa class viewcontroller: nsviewcontroller { @iboutlet weak var label: nstextfield! override func viewdidload() { super.viewdidload() if let device = mtlcreatesystemdefaultdevice() { label.stringvalue = "your gpu name is:\n\(device.name!)" } else { label.stringvalue = "your gpu not support metal!" } } }
i following error though:
when try import metal
explicitly, xcode tells me it's implicitly imported cocoa
.
my deployment target osx 10.11
:
why not working?
Comments
Post a Comment