运行pod spec lint
后出现以下错误:
Calebs-MacBook-Pro:JacquardToolkit calebrudnicki$ pod spec lint
-> JacquardToolkit (1.1.4)
- ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code. You can use `--verbose` for more information.
- NOTE | xcodebuild: note: Using new build system
- NOTE | [iOS] xcodebuild: note: Planning build
- NOTE | [iOS] xcodebuild: note: Constructing build description
- ERROR | [iOS] xcodebuild:
JacquardToolkit/JacquardToolkit/JSQRCodeScannerView.swift:47:40: error: type 'String' has no member 'center'
Analyzed 1 podspec.
[!] The spec did not pass validation, due to 2 errors.
返回项目并更新有问题的行,然后再次运行pod spec lint
之后,即使该行代码不存在,我仍然会遇到相同的错误。如何通过最新的代码使它通过?
答案 0 :(得分:0)
问题已解决。我需要做的就是更新标签,所有标签都可以正常工作。这是我的步骤:
git tag 1.1.5
(我之前是1.1.4)git push origin --tags
pod lib lint
pod spec lint
pod trunk push
现在,我的广告连播已更新。