Toa*_*oad 7 keychain swift swift2
在我们的swift代码中某处有一个带有此签名的方法的类:
static var getCertificates : [SecCertificate] { ... }
Run Code Online (Sandbox Code Playgroud)
在生成的app-swift.h中,这会导致:
@interface TrustedCertificates : NSObject
+ (NSArray<SecCertificateRef> * __nonnull)getCertificates;
@end
Run Code Online (Sandbox Code Playgroud)
这给出了编译错误:
Type argument 'SecCertificateRef' (aka 'struct __SecCertificate *') is neither an Objective-C object nor a block type
Run Code Online (Sandbox Code Playgroud)
我已经尝试在包含.h文件之前添加#import,但它没有解决错误.我也尝试将导入添加到pch.h文件中,但这也无济于事.
由于生成swift文件,我无法开始编辑它,因为无论如何它都会被覆盖.
知道什么是缺少它来编译?
| 归档时间: |
|
| 查看次数: |
399 次 |
| 最近记录: |