2
私はObjective-Cライブラリを持っていて、podspecをcocoapodsに更新しようとしています。私は「ポッドスペック糸くず」コマンドを実行すると、私は次のエラーを取得する:LintがCocoapodsに失敗する
[!] The spec did not pass validation, due to 1 error.
[!] The validator for Swift projects uses Swift 3.0 by default, if you are using a different version of swift you can use a `.swift-version` file to set the version for your Pod. For example to use Swift 2.3, run:
`echo "2.3" > .swift-version`.
ここに私のpodspecファイルです:
Pod::Spec.new do |s|
s.name = "OSwitch"
s.version = "0.2.0"
s.license = { :type => "MIT", :file => "LICENSE" }
s.summary = "OSwitch is a customisable switch control writen in Objective C."
s.homepage = 'https://github.com/OyaSaid/OSwitch'
s.source = { :git => 'https://github.com/OyaSaid/OSwitch.git', :tag => s.version.to_s }
s.platform = :ios, "7.0"
s.ios.frameworks = ['UIKit', 'Foundation']
s.source_files = 'OSwitch/Classes/**/*.{h,m}'
s.requires_arc = true
end
なぜ私は客観的Cライブラリを持っているこの番組はありません。そして私はこれをどのように修正するのですか?
おかげ
ありがとうございます!出来た。 – Oya
'pod spec lint --swift-version = 2.3'のように引数として指定することもできます。 –
ちょっと、端末でコマンドを使用しましたが、使用しません。迅速なバージョンファイルは作成されませんでした。いくつかのスクリーンショットで回答を説明したり編集したりできますか? –