gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-05 03:49:15 24 4
gpt4 key购买 nike

当我这样做时,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 项目文件和其他非源文件。

关于ios - pod spec lint 错误 - [iOS] xcodebuild : error: Unexpected duplicate tasks:,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64017230/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com