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:

error


when try import metal explicitly, xcode tells me it's implicitly imported cocoa.


my deployment target osx 10.11:

deployment target


why not working?


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -