3

enter image description here

When I'm converting swift 2.3 to swift 3 happen this error. I did Product->Clean-> Build, but it didn't work in my project. How to solve this error. Please help me.

jww
  • 97,681
  • 90
  • 411
  • 885
San San
  • 654
  • 1
  • 7
  • 16
  • Did you run the pod install command. – Sachin Vas Oct 11 '16 at 10:21
  • Yes! I did pod install command. – San San Oct 11 '16 at 10:22
  • In addition to `pod install` try installing the Swift 2.x module from here: https://github.com/krzyzanowskim/CryptoSwift/tree/swift2 – tush4r Oct 11 '16 at 10:22
  • pod 'CryptoSwift', :git => "https://github.com/krzyzanowskim/CryptoSwift", :branch => "master" I used this pod. But still error happen. @Fennec – San San Oct 11 '16 at 10:25
  • @Fennec, your link is swift 2. I encounter that problem too. My swift is 3. – May Phyu Oct 11 '16 at 10:25
  • @MayPhyu Could try adding it as embedded binary? – tush4r Oct 11 '16 at 10:27
  • @Fennec, I tried to embedded but it still did not work. :( – May Phyu Oct 11 '16 at 10:32
  • It is best to avoid using CryptoSwift, amoung other things it is 500 to 1000 times slower than Common Crypto based implementations. Apple's Common Crypto is FIPS certified and as such has been well vetted, using CryptoSwift is taking a chance on correctness and security. – zaph Oct 11 '16 at 13:21

1 Answers1

1

Similar to Dim San Cing's answer, which worked for me was to go to MyProject > Targets > Build Settings

I examined "Framework Search Paths" and found multiple references to the same path. I delete all duplicate references and this resolved my build errors.

Tim Newton
  • 1,463
  • 1
  • 13
  • 13