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

环境: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)

截图如下

xcode7接入iOS友盟分享问题处理_第1张图片

解决方案:

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

初次接入ios sdk,记录一下

你可能感兴趣的:(xcode7接入iOS友盟分享问题处理)