當我運行pod spec lint時,我不斷收到驗證錯誤。我嘗試了各種版本的pod spec文件,但它仍然沒有通過。我確實創建了一個swift文件來指向github中的3.0版以及其他所有避免此問題的方法。這是我有的podspec文件:Pod規格驗證可可豆問題
Pod::Spec.new do |s|
s.name = "SwiftImageCarousel"
s.version = "1.0.0"
s.summary = "SwiftImageCarousel is an easy-to-use carousel.」
s.description = "SwiftImageCarousel is an easy-to-use carousel. Just give it the image URLs, let it do the rest for you!」
s.homepage = 「https://github.com/Centroida/SwiftImageCarousel"
s.license = "MIT"
s.platform = :ios, "10.0"
s.source = { :git => "https://github.com/Centroida/SwiftImageCarousel.git」, :tag => 「1.0.0」 }
s.source_files = "SwiftImageCarousel", "SwiftImageCarousel/**/*.{h,m,swift,storyboard}」
s.pod_target_xcconfig = { 'SWIFT_VERSION' => '3' }
end
!] Invalid `SwiftImageCarousel.podspec` file: syntax error, unexpected tCONSTANT, expecting keyword_end
...cription = "SwiftImageCarousel is an easy-to-use carousel. ...
... ^
SwiftImageCarousel.podspec:5: syntax error, unexpected tIDENTIFIER, expecting keyword_do or '{' or '('
...usel is an easy-to-use carousel. Just give it the image URLs...
... ^
SwiftImageCarousel.podspec:5: syntax error, unexpected tIDENTIFIER, expecting keyword_do or '{' or '('
... give it the image URLs, let it do the rest for you!」
... ^
SwiftImageCarousel.podspec:5: syntax error, unexpected tIDENTIFIER, expecting keyword_do or '{' or '('
SwiftImageCarousel.podspec:6: syntax error, unexpected tLABEL
s.homepage = 「https://github.com/Centroida/SwiftImageCarousel"
^
SwiftImageCarousel.podspec:6: unknown regexp options - gthb
SwiftImageCarousel.podspec:6: syntax error, unexpected tSTRING_BEG, expecting keyword_do or '{' or '('
SwiftImageCarousel.podspec:7: syntax error, unexpected tCONSTANT, expecting keyword_end
s.license = "MIT"
^
SwiftImageCarousel.podspec:8: syntax error, unexpected tFLOAT, expecting keyword_end
s.platform = :ios, "10.0"
^
SwiftImageCarousel.podspec:9: syntax error, unexpected tIDENTIFIER, expecting keyword_end
...source = { :git => "https://github.com/Centroida/Swift...
... ^
SwiftImageCarousel.podspec:9: unknown regexp options - gthb
SwiftImageCarousel.podspec:9: syntax error, unexpected ',', expecting keyword_end
...oida/SwiftImageCarousel.git」, :tag => 「1.0.0」 }
... ^
SwiftImageCarousel.podspec:9: no .<digit> floating literal anymore; put 0 before dot
...eCarousel.git」, :tag => 「1.0.0」 }
... ^
SwiftImageCarousel.podspec:10: unterminated string meets end of file
SwiftImageCarousel.podspec:10: syntax error, unexpected end-of-input, expecting keyword_end.
事實證明,一些問題是引號。我重置主人,我正在重新啓動操作,我會給出更新發生的事情。 – Dido