您的位置:首页 > 移动开发 > IOS开发

ios包运行就崩溃的问题之一

2016-10-14 14:33 169 查看
现象描述:

打好iap包后,安装到测试设备上,然后点击icon,客户端闪现一下开机画面,然后马上就崩溃掉,查看设备的实时日志显示为

Oct 13 21:31:34 ipad SpringBoard[54] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]
Oct 13 21:31:34 ipad SpringBoard[54] <Error>:  SecTrustEvaluate  [leaf IssuerCommonName SubjectCommonName]

Oct 13 21:31:34 ipad kernel[0] <Notice>: xpcproxy[1325] Container: /private/var/mobile/Containers/Data/Application/84613D2A-A2A1-4DDD-88A7-C122D06E7082 (sandbox)

Oct 13 21:31:34 ipad com.apple.xpc.launchd[1] (UIKitApplication:com.xx.xxx[0x84df][1325]) <Notice>: Service exited due to signal: Trace/BPT trap: 5

Oct 13 21:31:34 ipad ReportCrash[1324] <Notice>: Formulating report for corpse[1325] Appname

Oct 13 21:31:34 ipad SpringBoard[54] <Warning>: Application 'UIKitApplication:com.xx.xxx[0x84df]' crashed.

Oct 13 21:31:34 ipad ReportCrash[1324] <Warning>: Saved type '109(109_Appname)' report (11 of max 25) at /var/mobile/Library/Logs/CrashReporter/Appname-2016-10-13-213134.ips 

解析崩溃日志显示为:

Dyld Error Message:

Dyld Message: Symbol not found: _kABPersonAddressStreetKey

  Referenced from: /var/containers/Bundle/Application/839B8B04-97A0-447B-88CC-01D51CFDF8D7/Appname.app/

  Expected in: dyld shared cache

解决的过程:

开始以为是代码中使用了ABPersonAddressStreetKey的问题,随后处理了问题依旧。

        通过NSLOG方式,发现程序并未之行didFinishLaunchingWithOptions方法,所以确定为不是代码问题。

       于是各种配置猜测,path对不对,keychain对不对,第三方库是否支持.....

最终找到了问题的原因,是因为xocde配置工程的时候,打开了wallet能力,而工程的证书里边并没有包含wallet能力(工程中没有打开xcode管理证书)

蓝瘦香菇.....
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  SecTrustEvaluate ios