0

I want to use AES encryption/decryption using CryptoSwift library. I used a library using pod. following pod I used. pod 'CryptoSwift', :git => "https://github.com/krzyzanowskim/CryptoSwift", :branch => "master" After installing pod in a project when I compiled the project it's give number of errors. enter image description here

Cœur
  • 37,241
  • 25
  • 195
  • 267
Urvish Patel
  • 175
  • 1
  • 11

2 Answers2

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

Please find below error, I saw when try to install pod in your project.

enter image description here

I found this error while pod install in your demo project.

Solution

Remove pod 'CryptoSwift' from your podfile, then do pod install

then again add pod 'CryptoSwift' in your podfile and run pod install, it will work.

Your pod file will looks like this,

# 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
PPL
  • 6,357
  • 1
  • 11
  • 30
0

Check swift version of the framework, if it is of older swift version, toggle the "Use Legacy Swift Language Version" from "No" to "Yes" in project settings. Refer Use Legacy Swift Language Version - Xcode 8.2 for more.

Hope this will help.

Rupendra
  • 89
  • 1
  • 2