pod库报C++头文件file not found问题

记录个问题:
项目中引入引入MLNKV后,编译报错。
以下为修改了MLNKVpodfile的结果,podfile中打开了use_frameworks!
pod库报C++头文件file not found问题_第1张图片
这是个找不到c++头文件问题,经过和项目对比发现只有在podfile中使用use_frameworks!会引起此现象,Google查阅到这篇文章,表明原因是暴露了C++头文件,只需要在podspec中把包含C++头文件的header文件设置为private,或者将该类头文件从public header中移除即可。

因外部不需要访问MLNKVBase等,因此在public header中只保留了MLNKVType,修改如下问题解决:
pod库报C++头文件file not found问题_第2张图片

你可能感兴趣的:(iOS,c++,开发语言,ios,use_frameworks)