[iOS] file patterns: The `public_header_files` pattern did not match any file.

 

由于之前集成私有pod,遇到问题,

 默认的头文件目录设置为:s.public_header_files = ‘Pod/Classes/**/*.h’;但是如果Classes目录中,你的代码文件夹层次结构超过两级,就会出现以下错误: 
- ERROR | [iOS] file patterns: The public_header_files pattern did not match any file. 
这是因为文件夹层次结构过浅,导致无法找到对应的文件;如果你的文件夹层次结构有三级,就应该修改成:s.public_header_files = ‘Pod/Classes/* * /* * /*.h’;

 

 更多参考:http://guides.cocoapods.org/syntax/podspec.html#specification  

posted @ 2017-09-15 09:36  大发写字的地方  阅读(1647)  评论(0编辑  收藏  举报