创建自己的pod库并上传

参考:如何制作自己的Pod库 -

报错 ··· error: include of non-modular header inside framework module ··· [-Werror,-Wnon-modular-include-in-framework-module]

解决办法:

在pod lib lint 或者 pod spec lint 以及 pod repo push ....时候加上   --use-libraries

pod lib lint --use-libraries

pod spec lint --use-libraries

当然,在提交的时候也要加上

pod repo push --use-libraries

参考:http://stackoverflow.com/questions/29132496/cocoapod-spec-wont-lint-with-0-36

"XXX" did not pass validation, due to 29 warnings (but you can use `--allow-warnings` to ignore them).

pod lib lint --use-libraries --allow-warnings

pod trunk push XXX.podspec --use-libraries --allow-warnings

你可能感兴趣的:(创建自己的pod库并上传)