簡體   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