繁体   English   中英

架构x86_64的未定义符号-我可以在设备上构建和运行,但不能在模拟器上运行

[英]Undefined symbols for architecture x86_64 - I can build and run on devices, but not for simulators

当我在模拟器上运行它时,出现此错误,

架构x86_64的未定义符号:“ _ SecPolicyCreateSSL”,引用自:
“ _SecTrustSetPolicies”,引用自:
“ _SecTrustGetCertificateCount”,引用自:
“ _SecTrustGetCertificateAtIndex”,引用自:
从以下位置引用的“ _SecTrustCreateWithCertificates”:
引用自以下名称的“ _SecTrustEvaluate”:ld:找不到架构x86_64的符号

您的框架不支持模拟器,您可以尝试一下

import Foundation
#if !targetEnvironment(simulator)
import YourFramework
#endif

// For using

#if !targetEnvironment(simulator)
    YourFramework.setup()
#endif

如果您有网桥头,也可以用于导入

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM