install pod swift 2



我想在swift 2 中使用 SwiftyRSA 当我添加

pod 'SwiftyRSA', :git => 'git@github.com:TakeScoop/SwiftyRSA.git', :branch => 'swift-2.3'

到 Pod 错误

[!] Invalid `Podfile` file: syntax error, unexpected tFID, expecting keyword_end.
#  from /Users/sina/Desktop/dev/test/Podfile:7
#  -------------------------------------------
#    # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
>  pod 'SwiftyRSA', :git => 'git@github.com:TakeScoop/SwiftyRSA.git', :branch => 'swift-2.3'  use_frameworks!
#  
#  -------------------------------------------

gitHub 链接 感谢您的帮助

在 podfile 末尾添加end

platform :ios, '8.3'
install! 'cocoapods', :integrate_targets => false
pod 'SwiftLint', '0.17.0'
target 'SwiftyRSA iOS'
target 'SwiftyRSA watchOS'
target 'SwiftyRSA tvOS'
end

您是否直接从 GitHub 存储库自述文件中复制了它?如果是这样,我的猜测是您可能有一些隐藏字符导致问题,因为您那里的格式是有效的。尝试将该行复制到文本编辑器中并将其转换为纯文本。

最新更新