引入CommonCrypto,编译过程中报错

如果私有cocoapods库中用到了CommonCrypto,lint的时候会报错:
Include of non-modular header inside framework module
build settings 里面设置 Allow Non-modular includes in Framework Modules to Yes 也不能解决问题,加上
--use-libraries就可以了:

pod lib lint --allow-warnings --use-libraries,
pod repo push localSpecRepoName xxx.podspec --verbose --use-libraries --allow-warnings

你可能感兴趣的:(引入CommonCrypto,编译过程中报错)