如果私有cocoapods庫(kù)中用到了CommonCrypto绰垂,lint的時(shí)候會(huì)報(bào)錯(cuò):
Include of non-modular header inside framework module
build settings 里面設(shè)置 Allow Non-modular includes in Framework Modules to Yes 也不能解決問(wèn)題,加上
--use-libraries就可以了:
pod lib lint --allow-warnings --use-libraries,
pod repo push localSpecRepoName xxx.podspec --verbose --use-libraries --allow-warnings