1. Swift cocoapods管理第三方库 'XXX.h' file not found
方法一: 在头文件的前面加上目录,如:
#import "MBProgressHUD/MBProgressHUD.h"
方法二:修改工程配置
Project-->Target-->Build Settings-->User Header Search Paths
添加项目:内容为:$(SRCROOT) 后面选项为:recursive
2. Xcode11.4 模拟器编译报错:Building for iOS Simulator, but the linked and embedded framework 'PAFaceCheck.framework' was built for iOS.
解决方法:
在 Build Settings - Excluded Source File Names - Debug 添加 Any iOS Simulator: IdcardQuality.framework
引用的位置最好用TARGET_OS_SIMULATOR判断一下