执行pod lib lint
验证podspec文件是否正确报了一个下面👇的错误
- ERROR | [iOS] unknown: Encountered an unknown error (The 'Pods-App' target has transitive dependencies that include static binaries: (/private/var/folders/zj/hff3w0_s0fl6rpf291l2btgh0000gn/T/CocoaPods-Lint-20190121-35737-1ilhzdf-AWAdsLib/Pods/FBAudienceNetwork/FBAudienceNetwork.framework)) during validation.
podspec文件中依赖了静态库造成的验证不通过,想要验证通过可以通过添加参数--use-libraries
让验证通过,这样操作并不影响pod使用
--verbose
显示检查编译的详细信息
--allow-warnings
验证时允许有警告
执行一下命令:通过验证
$ pod lib lint --verbose --use-libraries --allow-warnings
网友评论