由于下面的这条消息,Pod spec lint 失败

如何解决由于下面的这条消息,Pod spec lint 失败

我想在 Github 中发布我的 pod,但是当我在终端中使用 podspec lint 命令时遇到了这个错误

pod spec lint    
Ignoring digest-crc-0.6.3 because its extensions are not built. Try: gem pristine digest-crc --version 0.6.3
Ignoring unf_ext-0.0.7.7 because its extensions are not built. Try: gem pristine unf_ext --version 0.0.7.7

-> MyPodName (1.0.2)
- 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. 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  | xcodebuild:  note: Build preparation complete
- NOTE  | [iOS] xcodebuild:  note: Planning build
- NOTE  | [iOS] xcodebuild:  note: Analyzing workspace
- NOTE  | [iOS] xcodebuild:  note: Constructing build description
- NOTE  | 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 'MyPodName/MyPodName/MyPodName.xcodeproj/project.xcworkspace/contents.xcworkspacedata' of type 'text.xml' for architecture 'arm64' (in target 'MyPodName' from project 'Pods')
- NOTE  | [iOS] xcodebuild:  warning: no rule to process file 'MyPodName/MyPodName/MyPodName.xcodeproj/project.pbxproj' of type 'text.pbxproject' for architecture 'arm64' (in target 'MyPodName' from project 'Pods')
- NOTE  | [iOS] xcodebuild:  warning: no rule to process file 'MyPodName/MyPodName/MyPodName.xcodeproj/project.xcworkspace/contents.xcworkspacedata' of type 'text.xml' for architecture 'x86_64' (in target 'MyPodName' from project 'Pods')
- NOTE  | [iOS] xcodebuild:  warning: no rule to process file 'MyPodName/MyPodName/MyPodName.xcodeproj/project.pbxproj' of type 'text.pbxproject' for architecture 'x86_64' (in target 'MyPodName' from project 'Pods')
- NOTE  | [iOS] xcodebuild:  warning: no rule to process file 'MyPodName/MyPodName/MyPodName.xcodeproj/project.xcworkspace/contents.xcworkspacedata' of type 'text.xml' for architecture 'i386' (in target 'MyPodName' from project 'Pods')
- NOTE  | [iOS] xcodebuild:  warning: no rule to process file 'MyPodName/MyPodName/MyPodName.xcodeproj/project.pbxproj' of type 'text.pbxproject' for architecture 'i386' (in target 'MyPodName' from project 'Pods')
- NOTE  | [iOS] xcodebuild:  warning: duplicate output file '/Users/MyName/Library/Developer/Xcode/DerivedData/App-axxipgdxvmqnvletiqbakcsseqkn/Build/Products/Release-iphonesimulator/MyPodName/MyPodName.framework/Info.plist' on task: ProcessInfoPlistFile /Users/MyName/Library/Developer/Xcode/DerivedData/App-axxipgdxvmqnvletiqbakcsseqkn/Build/Products/Release-iphonesimulator/MyPodName/MyPodName.framework/Info.plist Target Support Files/MyPodName/MyPodName-Info.plist (in target 'MyPodName' from project 'Pods')

Analyzed 1 podspec.

[!] The spec did not pass validation,due to 1 error and 1 warning.

虽然我将 swift 版本更改为 5.0 但我不确定问题是什么

cat swift-version   

会回来

5.0

这是我的 podspec 文件

Pod::Spec.new do |spec|

spec.name         = "MyPodName"
spec.version      = "1.0.2"
spec.summary      = "Pod Summary"
spec.description  = "Pod Description"
spec.homepage     = "https://github.com/MyName/MyPodName"
spec.license      = "MIT"
spec.author       = { "MyName" => "MyName.sr@gmail.com" }
spec.platform     = :ios,"9.0"
spec.source       = { :git => "https://github.com/MyName/MyPodName.git",:tag => "1.0.2" }
spec.source_files = "MyPodName/**/*"

end

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其他元素将获得点击?
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。)
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbcDriver发生异常。为什么?
这是用Java进行XML解析的最佳库。
Java的PriorityQueue的内置迭代器不会以任何特定顺序遍历数据结构。为什么?
如何在Java中聆听按键时移动图像。
Java“Program to an interface”。这是什么意思?
Java在半透明框架/面板/组件上重新绘画。
Java“ Class.forName()”和“ Class.forName()。newInstance()”之间有什么区别?
在此环境中不提供编译器。也许是在JRE而不是JDK上运行?
Java用相同的方法在一个类中实现两个接口。哪种接口方法被覆盖?
Java 什么是Runtime.getRuntime()。totalMemory()和freeMemory()?
java.library.path中的java.lang.UnsatisfiedLinkError否*****。dll
JavaFX“位置是必需的。” 即使在同一包装中
Java 导入两个具有相同名称的类。怎么处理?
Java 是否应该在HttpServletResponse.getOutputStream()/。getWriter()上调用.close()?
Java RegEx元字符(。)和普通点?