In Xcode, when I try to add the Objective C library Common Crypto via a bridging header file in a Swift framework (using #import <CommonCrypto/CommonCrypto.h>
), I get an error saying that bridging headers aren't allowed when target is framework.
When I add it to the umbrella header file, I get this error: "Include of non-modular header inside framework module"
This link seems to the about the same problem: Importing CommonCrypto in a Swift framework
But the solutions there are very complex and seem to be too much for just including an Objective C library into a framework. Also there are some comments about the solution not working after some updates to Xcode and iOS. What is the best way to solve the issue? (The website would not let me comment on the above-mentioned link; so I had to post it as a separate question here.)