0

I'm trying to use cocoapods to install crypto swift and am having trouble with what to place in the pod file.

I have tried:

pod 'CryptoSwift', :git => "https://github.com/krzyzanowskim/CryptoSwift/tree/swift2", :branch => 'master'

And I get the error:

fatal: repository 'https://github.com/krzyzanowskim/CryptoSwift/tree/swift2/' not found

I'm not sure how to target the particular version needed. In the git instructions it states for Swift 2.2, 2.3: branch swift2 version <= 0.5.2. I can't seem how to target 0.5.2 syntactically, I also tried:

pod 'CryptoSwift', '<=0.5.2' :git => "https://github.com/krzyzanowskim/CryptoSwift", :branch => 'swift2'

and I got errors about unexpected commas.

4

1 回答 1

0

我用于 CryptoSwift 项目(Swift 2.3)的 podfile 字符串如下:

pod 'CryptoSwift', '0.5.2'

这对我有用。

于 2016-12-21T10:21:23.153 回答