You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A workaround is to create a TrustKitWrapper.h/m class and create wrapper methods for TrustKit APIs you need, then import TrustKitWrapper.h into your .mm files. Something like:
Importing TrustKit into an Objective-C++ (.mm) file via
#import <TrustKit/TrustKit.h>
results in the following build error:From what I've read, C++ modules are disabled for Objective-C++ files, and the
@import
directive isn't allowed.This seems to be a common problem in Pod libraries, other's have fixed it by doing something like:
For others having this issue
A workaround is to create a
TrustKitWrapper.h/m
class and create wrapper methods for TrustKit APIs you need, then importTrustKitWrapper.h
into your.mm
files. Something like:The text was updated successfully, but these errors were encountered: