热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

应用程序仅在审核时崩溃,这是一个钥匙串问题吗?-Appcrashesonlyinreview,isthisakeychainissue?

Cantduplicatethecrashonmydevices,andIdontunderstandthisentryinthecrashlog:无法在我的设备

Can't duplicate the crash on my devices, and I don't understand this entry in the crash log:

无法在我的设备上复制崩溃,我不明白崩溃日志中的这个条目:

2015-11-27 13:43:34.361 LARSA[1453]: SecOSStatusWith error:[-25299] Error Domain=NSOSStatusErrorDomain Code=-25299 "duplicate item O,genp,38C76CFA,L,ak,K95FHDJ5ZD.studiosixdigital,0,acct,svce,gena,v_Data,20151127214334.356112Z,0066C90F" UserInfo={NSDescription=duplicate item O,genp,38C76CFA,L,ak,K95FHDJ5ZD.studiosixdigital,0,acct,svce,gena,v_Data,20151127214334.356112Z,0066C90F}

2015-11-27 13:43:34.361 LARSA [1453]:SecOSStatusWith错误:[ - 25299]错误域= NSOSStatusErrorDomain代码= -25299“重复项目O,genp,38C76CFA,L,ak,K95FHDJ5ZD.studiosixdigital,0,acct ,svce,gena,v_Data,20151127214334.356112Z,0066C90F“UserInfo = {NSDescription =重复项目O,genp,38C76CFA,L,ak,K95FHDJ5ZD.studiosixdigital,0,acct,svce,gena,v_Data,20151127214334.356112Z,0066C90F}

Seems to be a duplicate item of some kind, but where?

似乎是某种重复的项目,但在哪里?

1 个解决方案

#1


0  

So it was not the KeyChain at all, it was apparently some window that was not connected to a viewcontroller. This code fixed it in diFinishLaunchingWithOptions:

所以它根本不是KeyChain,它显然是一些没有连接到viewcontroller的窗口。此代码将其修复为diFinishLaunchingWithOptions:

    NSArray *windows = [[UIApplication sharedApplication] windows];     // wow some crazy fix....
for(UIWindow *window in windows) {
    NSLog(@"window: %@",window.description);
    if(window.rootViewCOntroller== nil){
        UIViewController* vc = [[UIViewController alloc]initWithNibName:nil bundle:nil];
        window.rootViewCOntroller= vc;
    }
}

Which I found on this StackOverflow post:

我在这个StackOverflow帖子中找到了:

Application windows are expected to have root view controllers

应用程序窗口应具有根视图控制器


推荐阅读
author-avatar
1983热爱生活
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有