'DTCoreText/DTCoreText.h' file not found 问题

由于项目需要,用到了第三方框架 DTCoreText ,下面文档有介绍三种使用方式

https://docs.cocoanetics.com/DTCoreText/docs/Setup%20Guide.html#Cocoapods 

刚刚开始,我使用了第二种,项目导入方式。 并且按照所有流程配置下来


1.配置项目

'DTCoreText/DTCoreText.h' file not found 问题_第1张图片

2.修改other linker flags

'DTCoreText/DTCoreText.h' file not found 问题_第2张图片

3.导入user header searh paths

'DTCoreText/DTCoreText.h' file not found 问题_第3张图片


4.导入header search paths

'DTCoreText/DTCoreText.h' file not found 问题_第4张图片


但是最后提示



我在 Build Phases-> Link Binary WIth Libraries 导入了DTCoreText.framework  和 libDTCoreText.a才解决了该问题. 如果报错,那么再删除DTCoreText.framework 即可。


但是事情往往没有想象的那么简单 ,  我在准备上线应用的时候 Archive 报错了, 报的也是 

'DTCoreText/DTCoreText.h' file not found

我在github  还有 stackoverflow  找遍了帖子,都没有解决方案。 

后来我尝试使用 Cocoapods  的方式进行加载, 并且将  libDTCoreText.a and libDTFoundation.a 加入到Build Phases-> Link Binary WIth Libraries 
才顺利解决问题


'DTCoreText/DTCoreText.h' file not found 问题_第5张图片

你可能感兴趣的:('DTCoreText/DTCoreText.h' file not found 问题)