我想使用CryptoSwift库使用AES加密/解密。我用豆荚做图书馆。跟着我用的吊舱。pod 'CryptoSwift', :git => "https://github.com/krzyzanowskim/CryptoSwift", :branch => "master"在一个项目中安装了pod之后,当我编译这个项目时,它给出了一些错误。

发布于 2018-04-12 09:32:45
CocoaPods could not find compatible versions for pod "CryptoSwift":请找到下面的错误,我看到了当尝试安装吊舱在您的项目。

在演示项目中使用pod install时,我发现了这个错误。
溶液
从您的pod 'CryptoSwift' podfile中删除,然后执行pod安装
然后再次将pod 'CryptoSwift'添加到您的podfile中,并运行podfile,它将工作。
你的豆荚文件会像这样,
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'CryptoSwiftDemo' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
pod 'CryptoSwift'
# Pods for CryptoSwiftDemo
end发布于 2018-04-12 07:26:48
检查该框架的快速版本,如果它是旧的快速版本,切换“使用遗产斯威夫特语言版本”从“否”到“是”在项目设置。有关更多信息,请参考Use Legacy Swift Language Version - Xcode 8.2。
希望这能帮上忙。
https://stackoverflow.com/questions/49789739
复制相似问题