somewhere in our quick code there is a class with a method with this signature:
static var getCertificates : [SecCertificate] { ... }
in the generated app-swift.h, this results in:
@interface TrustedCertificates : NSObject + (NSArray<SecCertificateRef> * __nonnull)getCertificates; @end
and this gives a compilation error:
Type argument 'SecCertificateRef' (aka 'struct __SecCertificate *') is neither an Objective-C object nor a block type
I tried adding #import before the .h file is included, but it does not solve the problem. I also tried adding import to the pch.h file, but that also does not help.
Since the fast file is generated, I cannot edit it, because it will be overwritten.
Any idea what is missing to compile it?
swift swift2 keychain
Toad
source share