問題:我把UIKIT. framwork添加到新的framework下了,Xcode還是報錯:could not build module 'UIKit'?
解決:修改prefix header ,如圖:
什么是Framework?
Framework是資源的集合,將靜態庫和其頭文件包含到一個結構中,讓Xcode可以方便地把它納入到你的項目中。
添加UIKit.framework:
點擊BuildPhases,展開Link Binary with Libraries這一部分,點擊+添加一個新的framework,找到UIKit.framework,點擊add添加進來。
(參照介紹framwork: http://www.cocoachina.com/ios/20150127/11022.html)
錯誤:linker command failed with exit code 1 (use -v to see invocation)
方法:
在網上得到解決辦法是:
在工作左邊導航欄Target-->Build Phases-->compile Sources中,第三庫庫的所有.m文件都添加到里面,然后編譯通過了;
參考:http://blog.csdn.net/duxinfeng2010/article/details/8265273
錯誤:lexical or preprocessor issue :XCTest/XCTEST.h file not found
解決辦法:清空Target:framework search path