0

I made class Say for using in Cocoapods and that class needs Header like this:
enter image description here

And my header.h:

#import <CommonCrypto/CommonCryptor.h>
#import <CommonCrypto/CommonDigest.h>
#import <CommonCrypto/CommonHMAC.h>  

But Say class not read Header.h
How to fix this and add it to Objective-C Bridging header ?

reza_khalafi
  • 6,230
  • 7
  • 56
  • 82

1 Answers1

0

Please add a Bridging Header Class in your project using naming like this

<#YourProjectName>-Bridging-Header.h

Than inside this import all the framework Header file classes you need in your project file.

varender singh
  • 351
  • 3
  • 4
  • Get this error: :0: error: using bridging headers with framework targets is unsupported Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code 1 – reza_khalafi May 23 '17 at 08:12
  • i think you should check the version of Swift in that framework . If that is not 3.1 than you should use find one key in i.e "Use legacy swift Language version " and mark it "true". I hope this will work or you should follow this link [link](https://stackoverflow.com/questions/26156561/xcode-6-0-1-command-applications-xcode-app-contents-developer-toolchains-xcoded) – varender singh May 23 '17 at 16:26