IOS-問題:could not build module 'UIKit'

問題:我把UIKIT. framwork添加到新的framework下了,Xcode仍是報錯:could not build module 'UIKit'?

解決:修改prefix header ,如圖: html

 

 

 

什麼是Framework?

Framework是資源的集合,將靜態庫和其頭文件包含到一個結構中,讓Xcode能夠方便地把它歸入到你的項目中。ios

 

添加UIKit.framework:ui

點擊BuildPhases,展開Link Binary with Libraries這一部分,點擊+添加一個新的framework,找到UIKit.framework,點擊add添加進來。spa

(參照介紹framwork: http://www.cocoachina.com/ios/20150127/11022.html)

錯誤:linker command failed with exit code 1 (use -v to see invocation).net

方法:code

在網上獲得解決辦法是:htm

 

在工做左邊導航欄Target-->Build Phases-->compile Sources中,第三庫庫的全部.m文件都添加到裏面,而後編譯經過了;blog

 

參考:http://blog.csdn.net/duxinfeng2010/article/details/8265273資源

錯誤:lexical or preprocessor issue :XCTest/XCTEST.h file not foundget

解決辦法:清空Target:framework search path

相關文章
相關標籤/搜索