1. 報(bào)錯(cuò) ··· 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 ....時(shí)候加上 --use-libraries
pod lib lint --use-libraries
#或者
pod spec lint --use-libraries
#當(dāng)然,在提交的時(shí)候也要加上
pod repo push <repoName> <podspec> --use-libraries
如果有警告,可以添加這個(gè)允許警告
pod lib lint --allow-warnings
參考地址:http://stackoverflow.com/questions/29132496/cocoapod-spec-wont-lint-with-0-36
2. xcodebuild: Returned an unsuccessful exit code. You can use --verbose for more information
這個(gè)錯(cuò)誤是項(xiàng)目中某個(gè)文件找不到, 其實(shí)回到項(xiàng)目編譯一下看哪里報(bào)錯(cuò),修改后再重新執(zhí)行指令即可驗(yàn)證通過(guò).
pod repo remove trunk
3. [!] CDN: trunk Repo update failed - 39 error(s):
我的podspec中有依賴(lài)其他庫(kù),但是本地地trunk(即CDN源)沒(méi)有這個(gè)庫(kù),cocoapods1.8.4的時(shí)候默認(rèn)pod源是通過(guò)CDN的,所以可以把trunk移除,即
pod repo remove trunk