iOS开发Debug之 Could not build module 'UIKit'/Framework或Unknown type name 'XXX'

背景:运行很久之前的项目报错。

Could not build module 'UIKit'

Could not build module Framework

Unknown type name 'XXX'


解决方法:

建议在头文件上

#ifdef __OBJC__

#import <UIKit/UIKit.h> 

#import XXX.h

#endif

猜你喜欢

转载自blog.csdn.net/q1194259339/article/details/79772399