我正在执行 命令如下:
pod lib lint XXX.podspec --verbose
代码是Objective-C写的,为什么会出现Swift的相关错误呢?
错误信息如下:
[!] TDTouchID did not pass validation, due to 2 errors.
[!] The validator for Swift projects uses Swift 3.0 by default, if you are using a different version of swift you can use a `.swift-version` file to set the version for your Pod. For example to use Swift 2.3, run:
`echo "2.3" > .swift-version`.
You can use the `--no-clean` option to inspect any issue.
已经解决:
重新标记了git tag
重新 提交到远程仓库 git push --tag
重新 验证就通过了
다시 태그된 git 태그
원격 창고에 다시 제출 git push --tag
재검증 통과