获取线程1信号SIGQUIT

时间:2017-06-18 23:58:31

标签: objective-c

我正在获取线程1:在运行我的应用程序时发出SIGQUIT信号。但是当我点击继续执行时,应用程序正在恢复并完成任务。不知道为什么我得到这个

NSArray *keyNamesForKAV = [[NSArray alloc]initWithObjects:@"aKAV",@"bKAV",@"cKAV",@"dKAV",@"eKAV",@"fKAV",@"gKAV",@"hKAV",@"iKAV",@"jKAV",@"kKAV",@"lKAV",@"mKAV",@"nKAV",@"oKAV",@"pKAV",@"qKAV",@"rKAV",@"sKAV",@"tKAV",@"uKAV",@"vKAV",@"wKAV",@"xKAV",@"yKAV",@"zKAV", nil];


NSUserDefaults* defaults = [NSUserDefaults standardUserDefaults];
KAVTrie *kavTree = [defaults rm_customObjectForKey:@"zKAV"];
NSMutableArray *KAVArray = [[NSMutableArray alloc]init];
if (!kavTree){
    for (int i = 0 ; i < 26; i++){
        KAVTrie *trie = [[KAVTrie alloc]init];
        KAVTrie *trieLoad = [[KAVTrie alloc]init];
        NSString *path = [[NSBundle mainBundle] pathForResource:[NSString stringWithFormat:@"%c",[[keyNamesForKAV objectAtIndex:i] characterAtIndex:0]]  ofType:@"plist"];
        NSDictionary *tempDict = [[NSDictionary alloc] initWithContentsOfFile:path];
        NSArray *array = [tempDict allKeys];

        trie = [trieLoad storeTrieInArray:array];
        [KAVArray addObject:trie];
    }
    NSLog(@"KAV objects created");

    for (int i = 0 ; i < 26; i++){
        [defaults rm_setCustomObject:[KAVArray objectAtIndex:i] forKey:[keyNamesForKAV objectAtIndex:i]];
        [defaults synchronize];
    }

    NSLog(@"KAV objects loaded in user defaults");

}    

我在第二个for循环中遇到错误

1 个答案:

答案 0 :(得分:0)

我发现了。我的KAV类文件存在问题