Pod spec lint没有更新

问题描述 投票:0回答:1

运行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之后,即使那行代码不存在,我仍然会得到相同的错误。如何使用最新的代码传递此信息?

terminal cocoapods podspec
1个回答
0
投票

问题解决了。我需要做的就是更新我的标签,这一切都奏效了。这是我的步骤:

  1. git tag 1.1.5(之前我在1.1.4)
  2. git push origin --tags
  3. pod lib lint
  4. pod spec lint
  5. pod trunk push

现在我的pod已更新。

© www.soinside.com 2019 - 2024. All rights reserved.