首页 > 代码库 > __ObjC.NSNotification.Name

__ObjC.NSNotification.Name

 

Undefined symbols for architecture x86_64:   "protocol witness table for __ObjC.NSNotification.Name : Swift.Hashable in Foundation", referenced from:       xcode8Beta测试.ViewController.touchesBegan (Sw

 

 

这种错误只需要注意String 类型和NSnotification.Name类型的不同就行了。举个例子: 

技术分享

 

吧这个地方的字符串转化为String就行了

 

__ObjC.NSNotification.Name