I am creating a mixed language structure. I mainly have Swift files and several Objective-C.
One of the Objective-C files is a cryptoclass that uses CommonCrypto.
It seems like I cannot import it for any reason, although I can import it into the Objective-C framework.
Can someone explain to me why this is?
All the other solutions that I have found talk about how to use CommonCrypto in Swift, when I need to use it in Objective-C in a Swift environment.
PS:
I tried adding import to the umbrella header file as follows:
#import <CommonCrypto/CommonCrypto.h>
error:Include of non-modular header inside framework module 'name of header'
This answer did not fix the problem: answer
source
share