iOS could not build module ‘UIKit’
来源:互联网 发布:php中final 编辑:程序博客网 时间:2024/05/24 05:49
过个周末来,遇到的诡异的问题。上个周多还是好好的。
回忆了一下,也查询了一些资料,想起周末在家做了一个界面,可能无意之间,修改了UICollectionViewDelegate的方法。导致的。
总结了网上的方法:
可能性一:.pch文件的引用错误;
在引用头文件开始加入#ifdef OBJC 结束时加入#endif,例如
#ifndef PureStandard_PrefixHeader_pch #define PureStandard_PrefixHeader_pch #ifdef __OBJC__ #import "A.h" #import "B.h" #endif #endif
可能性二:UIKit库损坏或被修改(貌似ios5以上不能修改,一改就坏)
解决一:通常通过删除moduleCache就可以了,这也是网上通常的做法。
/Users/你的主机名/Library/Developer/Xcode/DerivedData
解决二:我在本机上无论如果多次删除moduleCache都无效,最后是更换了同事的UIKit.framework!
最后实在不行,无奈就彻底删除xcode,记住要彻底,不是直接拿去垃圾桶,网上很多教程,重装一个。
保持好清醒的头脑,认真的对待每一个问题。
0 0
- iOS could not build module ‘UIKit’
- could not build module UIKit”
- iOS错误之---fatal error: could not build module 'UIKit'
- Could not build module 'UIKit'问题
- could not build module ‘Foundation’, could not build module ‘UIKit’……23个错误
- fatal error could not build module ‘UIKit’ 错误
- “could not build module UIKit”问题的解决
- “could not build module UIKit”问题的解决
- “could not build module UIKit”问题的解决
- “could not build module UIKit”问题的解决
- Could not build module 'UIKit' 或者加入C++文件 错误
- 头文件声明出现:could not build module UIKit
- IOS Could not build module 'foundation'
- pch文件导入uikit报错 could not build module 'uikit'
- "Counld not build module "UIKit" Counld not build module "Foundation""
- Xcode5.1中编译突然报错 could not build module ”uikit“
- could not build module darwin
- Could not build module "Darwin"
- IOS App版本更新
- PowerDesigner 脚本使用详解
- 第七周 OJ总结<5>-C语言实验---一元二次方程
- java.lang.AbstractMethodError: org.mybatis.spring.transaction.SpringManagedTransaction.getTimeout()L
- nginx反射代码做法
- iOS could not build module ‘UIKit’
- Spring Boot MyBatis 连接数据库
- springmvc中aop对controller切面编程
- 解决vsftpd 读取目录列表失败的问题
- 前缀、中缀、后缀表达式
- sdnuACM1011盒子与球
- point-wise ranking Vs pair-wise ranking
- ssh无密钥远程登录配置
- 第八周 谁是小偷