pod spec lint error - [iOS] xcodebuild: error: Unexpected duplicate tasks:

pod spec lint error - [iOS] xcodebuild: error: Unexpected duplicate tasks:

当我这样做时,pod spec lint,我得到以下验证错误。

 [Framework-Name] (1.0.0)
        - ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code. You can use `--verbose` for more information.
        - NOTE  | xcodebuild:  note: Using new build system
        - NOTE  | xcodebuild:  note: Building targets in parallel
        - NOTE  | xcodebuild:  note: Using codesigning identity override: -
        - 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')
        - NOTE  | [iOS] xcodebuild:  warning: no rule to process file '[Framework-Name]/[Framework-Name]/[Framework-Name].xcodeproj/project.xcworkspace/contents.xcworkspacedata' of type 'text.xml' for architecture 'arm64' (in target 'Framework-Name' from project 'Pods')
        - NOTE  | [iOS] xcodebuild:  warning: no rule to process file '[Framework-Name/Framework-Name/Framework-Name].xcodeproj/project.pbxproj' of type 'text.pbxproject' for architecture 'arm64' (in target 'Framework-Name' from project 'Pods')
        - NOTE  | [iOS] xcodebuild:  warning: no rule to process file '[Framework-Name/Framework-Name/Framework-Name].xcodeproj/project.xcworkspace/contents.xcworkspacedata' of type 'text.xml' for architecture 'i386' (in target 'Framework-Name' from project 'Pods')
        - NOTE  | [iOS] xcodebuild:  warning: no rule to process file 'Framework-Name/Framework-Name/Framework-Name.xcodeproj/project.pbxproj' of type 'text.pbxproject' for architecture 'i386' (in target 'Framework-Name' from project 'Pods')
        - NOTE  | [iOS] xcodebuild:  warning: no rule to process file '[Framework-Name/Framework-Name/Framework-Name].xcodeproj/project.xcworkspace/contents.xcworkspacedata' of type 'text.xml' for architecture 'x86_64' (in target 'Framework-Name' from project 'Pods')
        - NOTE  | [iOS] xcodebuild:  warning: no rule to process file '[Framework-Name/Framework-Name/Framework-Name].xcodeproj/project.pbxproj' of type 'text.pbxproject' for architecture 'x86_64' (in target 'Framework-Name' from project 'Pods')

Analyzed 1 podspec.

不知道,这是怎么回事。我按照说明一步一步来。

这是我的规范文件:

Pod::Spec.new do |s|

  s.name         = "[Framework-Name]"
  s.version      = "1.0.0"
  s.summary      = "Framework-Name summary"
  s.homepage     = "[Github path for framework]"
  s.license      = "MIT"
  s.author       = { "Author Name" => "author_email@gmail.com" }
  s.platform     = :ios, "10.0"
  s.swift_version = "5.0"
  s.source       = { :git => "[Github path for framework].git", :tag => "1.0.0" }
  s.source_files  = "[Framework-Name]/**/*"
  s.exclude_files = "[Framework-Name]/**/*.plist"
end

我找不到任何可以帮助的东西。

podspec 的 s.source_file 表达式中的 Xcode 项目文件应该只引用源文件。

Xcode 项目文件和其他 non-source 文件不应包含在内。