2016-10-19 1 views
0

Objective-Cで書かれたポッドレポをパブリックスペースに公開しようとしています。すべてがうまく動作しそうですが、私はpodspecファイルをチェックするために、 "ポッドLIB糸くず" を使用する場合、次のエラーが登場:1.1.0.betaをポッドレポの出会いを公開する "xcodebuild:失敗した終了コードを返しました"

CocoaPods:

- 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' => '[email protected]' } 
    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** 

私が使用しています0.2

ルビールビー2.0.0p648

のXcode 8.0

OS X 10.11.6

"pod spec lint"で他の公開されたpodspecファイル(SVPullToRefreshとして)を試しましたが、同じエラーが表示されていました。このエラーは私のspecのフォーマットに起因するとは思われません。この問題は一日中無駄ですが、まだ解決されていません。

誰もが私にこれを助けることができますか?

+0

ポッドスペックの詳細を投稿してお手伝いいただければ幸いです。 lintingの際に--verboseを使用することをお勧めします。そうすれば、podspecを検証する際に何が問題になったのかを詳細に知ることができます。 – iOSAddicted

+0

あなたのリマインダーをありがとう、私は質問に私のポッドスペックを入れました。 @iOS追加された – fizix100

答えて

1

ポッドをバージョン1.1.0にアップデートした後、エラーが消え、私のレポが公開されました。UIButtonから継承された非常に小さなコントロールです。

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

:左github link

その間に右とbutton.titleにbutton.imageを表示することができ、私はポッドコマンド「ポッドLIBのlintは」私には間違ったエラーを示したことがわかりましたコマンド "pod spec lint"が渡され、正常に終了しましたそれを発表した。 結論は「ポッド・リブ・リント」が間違ってしまったということでした。

関連する問題