gpt4 book ai didi

ios - Swift 4.0 的 CryptoSwift Lib 安装失败

转载 作者:行者123 更新时间:2023-11-28 14:52:00 26 4
gpt4 key购买 nike

我想通过 CryptoSwift 库使用 AES 加密/解密。我使用了一个使用 pod 的库。以下是我使用的 pods 。pod 'CryptoSwift', :git => "https://github.com/krzyzanowskim/CryptoSwift", :branch => "master"在我编译项目时在项目中安装 pod 后,它给出了一些错误。 enter image description here

最佳答案

CocoaPods could not find compatible versions for pod "CryptoSwift":

请找到以下错误,我在尝试在您的项目中安装 pod 时看到。

enter image description here

我在您的演示项目中 pod install 时发现了这个错误。

解决方案

从您的podfile 中删除pod 'CryptoSwift',然后执行pod install

然后再次在您的podfile 中添加pod 'CryptoSwift' 并运行pod install,它将起作用。

您的 pod 文件将如下所示,

# 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

关于ios - Swift 4.0 的 CryptoSwift Lib 安装失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49789739/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com