xcode7接入iOS友盟分享问题处理

本文记录了在使用QuickCocos2dx3.3环境下接入友盟SDK时遇到的编译错误,并提供了详细的错误信息及解决方案。通过在工程BuildPhase中添加Security.framework成功解决了链接错误。
摘要由CSDN通过智能技术生成

环境:quick cocos2dx 3.3final

xcode:7.2

友盟接入sdk时间:2016-1-18

按照文档接入,最终编译报错显示:

Undefined symbols for architecture i386:

  "_SecCertificateCopyData", referenced from:

      -[UMSocialSecurityPolicy evaluateServerTrust:forDomain:] in libUMSocial_Sdk_4.4.a(UMSocialSecurityPolicy.o)

  "_SecCertificateCreateWithData", referenced from:

      -[UMSocialSecurityPolicy setPinnedCertificates:] in libUMSocial_Sdk_4.4.a(UMSocialSecurityPolicy.o)

      -[UMSocialSecurityPolicy evaluateServerTrust:forDomain:] in libUMSocial_Sdk_4.4.a(UMSocialSecurityPolicy.o)

  "_SecPolicyCreateBasicX509", referenced from:

      -[UMSocialSecurityPolicy setPinnedCertificates:] in libUMSocial_Sdk_4.4.a(UMSocialSecurityPolicy.o)

      -[UMSocialSecurityPolicy evaluateServerTrust:forDomain:] in libUMSocial_Sdk_4.4.a(UMSocialSecurityPolicy.o)

  "_SecPolicyCreateSSL", referenced from:

      -[UMSocialSecurityPolicy evaluateServerTrust:forDomain:] in libUMSocial_Sdk_4.4.a(UMSocialSecurityPolicy.o)

  "_SecTrustCopyPublicKey", referenced from:

      -[UMSocialSecurityPolicy setPinnedCertificates:] in libUMSocial_Sdk_4.4.a(UMSocialSecurityPolicy.o)

      -[UMSocialSecurityPolicy evaluateServerTrust:forDomain:] in libUMSocial_Sdk_4.4.a(UMSocialSecurityPolicy.o)

  "_SecTrustCreateWithCertificates", referenced from:

      -[UMSocialSecurityPolicy setPinnedCertificates:] in libUMSocial_Sdk_4.4.a(UMSocialSecurityPolicy.o)

      -[UMSocialSecurityPolicy evaluateServerTrust:forDomain:] in libUMSocial_Sdk_4.4.a(UMSocialSecurityPolicy.o)

  "_SecTrustEvaluate", referenced from:

      -[UMSocialSecurityPolicy setPinnedCertificates:] in libUMSocial_Sdk_4.4.a(UMSocialSecurityPolicy.o)

      -[UMSocialSecurityPolicy evaluateServerTrust:forDomain:] in libUMSocial_Sdk_4.4.a(UMSocialSecurityPolicy.o)

  "_SecTrustGetCertificateAtIndex", referenced from:

      -[UMSocialSecurityPolicy evaluateServerTrust:forDomain:] in libUMSocial_Sdk_4.4.a(UMSocialSecurityPolicy.o)

  "_SecTrustGetCertificateCount", referenced from:

      -[UMSocialSecurityPolicy evaluateServerTrust:forDomain:] in libUMSocial_Sdk_4.4.a(UMSocialSecurityPolicy.o)

  "_SecTrustSetAnchorCertificates", referenced from:

      -[UMSocialSecurityPolicy evaluateServerTrust:forDomain:] in libUMSocial_Sdk_4.4.a(UMSocialSecurityPolicy.o)

  "_SecTrustSetPolicies", referenced from:

      -[UMSocialSecurityPolicy evaluateServerTrust:forDomain:] in libUMSocial_Sdk_4.4.a(UMSocialSecurityPolicy.o)

ld: symbol(s) not found for architecture i386

clang: error: linker command failed with exit code 1 (use -v to see invocation)

截图如下


解决方案:

在工程BuildPhase中添加Security.framework即可。

初次接入ios sdk,记录一下

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值