0

当我在我的 iPhone 上测试我的应用程序时,当应用程序启动时,我得到这个奇怪的输出:

DataFile:文件打开错误:/var/mobile/Library/Keyboard/de_DE-dynamic-Text.dat,(权限被拒绝)

这是什么意思?又该怎么做呢?

编辑:似乎文件打开错误发生在我的代码的那部分,因为当我“注释”它时,错误不会显示:

NSMutableDictionary *InfoDic = [[NSMutableDictionary alloc] initWithContentsOfURL:[[NSURL alloc]initFileURLWithPath:[[NSBundle mainBundle]pathForResource:@"AppInformation" ofType:@"plist"]]];

    NSString *Checkstring = [InfoDic objectForKey:@"Language"];

    if ([Checkstring isEqualToString:@"empty"]) {
 UIAlertView *determineLang = [[UIAlertView alloc] initWithTitle:@"Select a Language" message:@"Choose a Language"
delegate:self cancelButtonTitle:@"Deutsch" otherButtonTitles:@"English", nil];
 determineLang.tag=5;
 [determineLang show];

 }

Edit2:似乎我每个应用程序中的每个警报视图都导致了同样的问题,一定是 iPhone 越狱的问题......

4

2 回答 2

1

这似乎是越狱的 iDevices 和 UIAlertViews 的问题!由于它似乎对应用程序本身的行为没有任何进一步的影响,我想说每个面临问题的人都必须忍受它。

于 2013-04-14T00:25:57.553 回答
0

我的没有越狱,它似乎仍然给出了上述结果:

  • (IBAction)callPhoneNumber:(id)sender {

    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:nil message:@"xxxxxxxxxx" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"Call", nil];

    [警报显示];}

DataFile:文件打开错误:/var/mobile/Library/Keyboard/en_GB-dynamic-text.dat,(权限被拒绝)

于 2013-07-01T22:28:11.560 回答