No such Module Found on line -> "import Cryptokit"

I have used Apple API - Apple CryptoKit | Apple Developer Documentation in my project .

While Archieving the Project , I gives out an error ,And build Fails .

The Same Project works well in Xcode 12_4 . Only after I updated my Xcode to Xcode13. This Error Started Occurring .

Xcode12_4 - Catalina Mac Xcode 13 - BigSur Mac.

Whether It may be due to Bigsur ? Does Any other reproduces this Error?

Can Anyone Help me in this?

Replies

While Archieving the Project , I gives out an error ,And build Fails Only after I updated my Xcode to Xcode13. This Error Started Occurring . Whether It may be due to Bigsur ? Does Any other reproduces this Error?

Strange, I tried this on Big Sur 11.5.2 with Xcode 13 and was not able to reproduce this. I also tried it on Monterey Beta 9 with Xcode 13 and it worked well there too.

Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com
  • My App's Deployment Target is 10.0. When I try Building with "Any iOS Device(arm64, arm7)" in the place of selecting simulators. It gives out the error . The Same Build when I try it with Simulator (say iPhone 13) , Build is succeeding with no error.

Add a Comment

I tested with Xcode 13 and BigSur. No error with import CryptoKit. I also tested in playground, no problem either.

Do you get any completion proposal when you start typing import Cr…. ? If not that may mean you had an Xcode installation problem.

Xcode12_4 - Catalina Mac Xcode 13 - BigSur Mac.

What do you mean here ? Did it work in 12.4 ? Which exact version of Xcode 13 are you using ?

Could you show the full beginning of your file (before line 13) ?

  • Do you get any completion proposal when you start typing import Cr…. ? No .No such Completion Proposal..

    What do you mean here ? Did it work in 12.4 ? Which exact version of Xcode 13 are you using ? My App's Deployment Target is 10.0. When I try Building with "Any iOS Device(arm64, arm7)" in the place of selecting simulators. It gives out the error . The Same Build when I try it with Simulator (say iPhone 13) , Build is succeeding with no error. The Above Error Occurring only Xcode13 , not in Xcode12_4.

    Could you show the full beginning of your file (before line 13) ? `import Foundation

    import UIKit import CoreData import CocoaLumberjack import CryptoKit import CommonCrypto`

Add a Comment