iOS工程裏添加C文件造成的編譯錯誤

expected identifier or'('

unknown type name‘nsstring’

declaration of 'protocol'must be imported from module'objectiveC.runtime'before it is required


原來在xcode6裏新建的pch文件少了

#ifdef __OBJC__
#endif

這一段代碼,把這段加上去,並把在pch裏import的頭文件放到
#ifdef __OBJC__裏,clean之後重新編譯,大功告成!


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章