Swift學習筆記(一):No such module 'Cocoa'

在xcode中建立一個Playground文件,xcode

 

進行導包操做 ,import Cocoa 卻提示No such module 'Cocoa'code

緣由是該Playground文件的platform 設置成了iOS,改成OS X 便可orm

 

若是進行導包操做 ,import UIKit 卻提示No such module 'UIKit'blog

則緣由相反,改成iOS便可it

 

打開File Inspector,以下圖設置form

相關文章
相關標籤/搜索