1

I added "NSData+CommonCrypto.h" and "NSData+CommonCrypto.m"' for use sha256. I also add bridging header "chekit-Bridging-Header.h" and I wrote #import <CommonCrypto/CommonDigest.h> in the file.

In the building setting, I checked the file is added in Swift compiler - code generation objective-c bridging header.

10 errors occurs when build like above picture: Click here to see my screenshot

Thanks!

Roy K
  • 3,319
  • 2
  • 27
  • 43
kimpro
  • 329
  • 1
  • 5
  • 13

1 Answers1

0

The import part sounds OK, however, it seems that the code you added is not using ARC (While your project does). You will need to go over the added code and convert it to ARC.

See more details of how to do this:

Roy K
  • 3,319
  • 2
  • 27
  • 43