我正在尝试验证我的podspec,由于它使用新的构建系统而不是旧的构建系统,因此它返回以下错误。
- WARN | source: Git sources should specify a tag.
- WARN | url: The URL (https://cocoapods.org/pods/AxisColoringViewSwift) is not reachable.
- WARN | [iOS] license: Unable to find a license file
- WARN | [iOS] swift: The validator used Swift `4.0` by default because no Swift version was specified. To specify a Swift version during validation, add the `swift_versions` attribute in your podspec. Note that usage of a `.swift-version` file is now deprecated.
- ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code.
- NOTE | xcodebuild: note: Using new build system
- NOTE | [iOS] xcodebuild: note: Planning build
- NOTE | [iOS] xcodebuild: note: Constructing build description
- NOTE | [iOS] xcodebuild: error: Unexpected duplicate tasks:
- NOTE | [iOS] xcodebuild: warning: Skipping code signing because the target does not have an Info.plist file and one is not being generated automatically. (in target 'App' from project 'App')
实际错误:
Build system information
error: Unexpected duplicate tasks:
这是我的终端命令
pod repo push https://xp-dev.com/git/my-private-podspecs MyLib.podspec --allow-warnings
发生错误是因为在验证时它使用新的生成系统。验证我的podspec时,如何将其更改为旧版构建系统。