1. Swift cocoapods管理第三方庫 'XXX.h' file not found
方法一: 在頭文件的前面加上目錄,如:
#import "MBProgressHUD/MBProgressHUD.h"
方法二:修改工程配置
Project-->Target-->Build Settings-->User Header Search Paths
添加項(xiàng)目:內(nèi)容為:$(SRCROOT) 后面選項(xiàng)為:recursive
2. Xcode11.4 模擬器編譯報(bào)錯(cuò):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判斷一下