当我执行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
我找不到任何能够帮助的东西。
--verbose
和--no-clean
选项可以帮助进行调查。 - Paul Beusteriens.source_file
表达式中包含Xcode项目文件可能会出现问题。 - Paul Beusterien