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

相关文章
相关标签/搜索