ios - Pod 规范验证 Cocoa Pod 问题

标签 ios ruby-on-rails swift git cocoapods

当我运行 pod spec lint 时,我不断收到验证错误。我尝试了各种版本的 pod 规范文件,但仍然没有通过。我确实创建了一个 swift 文件来指向 github 中的 3.0 版本以及避免该问题的所有其他方法。这是我的 podspec 文件:

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.

最佳答案

大引号会引起麻烦吗?

关于ios - Pod 规范验证 Cocoa Pod 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41683403/

相关文章:

ios - 使用相机的图像选择器未使用相机图像

ios - 找不到“google/protobuf/stubs/common.h”文件

javascript - Rails.js 的目的

ruby-on-rails - 为一个模型设计多个路径

ios - 在 Swift 的 AVPlayerViewController 中播放来自 Youtube 的视频

swift - 如何在 Swift 中从 [DDXMLElement] 中提取值?

ios - 自定义 Xcode IDE 插件错误 : "Could not find class named..."

ios - 设置页面添加或减去不同的图像阵列。使用 swift 和 xcode 进行编码

ruby-on-rails - 使用 Redis 作为身份验证 token

ios - 在另一个 swift 类中使用 String