发布 Pod 存储库遇到"xcodebuild: Returned an unsuccessful exit code"



我正试图在公共空间发布一个用Objective-C编写的pod repo。看起来一切都很好,但是当我使用"pod lib lint"检查podspec文件时,出现了以下错误:

- ERROR | [iOS] xcodebuild: Returned an unsuccessful exit code. You can use `--verbose` for more information.
- NOTE  | [iOS] xcodebuild:  xcodebuild: error: 'App.xcworkspace' does not exist.**
Pod::Spec.new do |s|
  s.name     = 'ImageRightButton'
  s.version  = '0.0.3'
  s.platform = :ios, '7.0'
  s.license  = 'MIT'
  s.summary  = 'Give a button with titlelabel in left and image in right'
  s.homepage = 'https://github.com/fizix100/ImageRightButton'
  s.author   = { 'fizix100' => 'fizix100@hotmail.com' }
  s.source   = { :git => 'https://github.com/fizix100/ImageRightButton.git',    :tag => s.version.to_s }
  s.description = 'Inherited from UIButton, the button has a BOOL property "isImageRight",
         when set this property as YES, the button can set its title in left and
         image in right'
  s.prefix_header_contents = '#import <UIKit/UIKit.h>'
  s.source_files = 'Classes/*.{h,m}'
  s.preserve_paths  = 'Example'
  s.requires_arc = true
end**

我用:

CocoaPods 1.1.0.beta.2

Ruby 2.0.0p648

Xcode 8.0

OS X 10.11.6

我用"podspec lint"尝试了其他发布的podspec文件(如SVPullToRefresh),它们显示了相同的错误,所以我不认为这个错误是由我的规范格式引起的。这个问题浪费了我一整天,还是没有解决。

有谁能帮我一下吗?

这个问题已经解决了,只是由于cocoapods版本1.0.1。今天在我的pod更新到1.1.0版本后,错误消失了,我的repo已经发布,一个非常小的控件继承自UIButton,可以显示按钮。右边的图像和按钮。标题在左边github link

同时,我发现pod命令"pod lib lint"确实向我显示了一个错误:

- ERROR | [iOS] file patterns: The 'source_files' pattern did not match any file.

但是命令"pod spec lint"通过了,我成功地发布了它。结论是"pod lib lint"出错了,它只是误导了我。

相关内容

最新更新