iPad 上的 I/O - 错误
我的 iPad 应用程序中有以下按钮:
subject = [[UIButton alloc] init];
subject.frame = CGRectMake(710, 5, 180, 30);
[[subject layer] setCornerRadius:8.0f];
[[subject layer] setMasksToBounds:YES];
[[subject layer] setBorderWidth:3.0f];
[[subject layer] setBackgroundColor:[[UIColor greenColor] CGColor]];
subject.titleLabel.font = [UIFont boldSystemFontOfSize:20];
[subject setTitleColor:[UIColor redColor] forState:UIControlStateNormal];
[subject setTitleColor:[UIColor whiteColor] forState:UIControlEventAllEvents];
[subject addTarget:self action:@selector(subjectPressed) forControlEvents:UIControlEventTouchUpInside];
[subject setTitle:@"Subject: ?" forState:UIControlStateNormal];
[[subject layer] setBorderColor:[[UIColor greenColor] CGColor]];
[self.view addSubview:subject];
这是当我单击按钮时调用的函数: - (void)subjectPressed {
UIAlertView * alert = [[UIAlertView alloc] initWithTitle:@"Subject" message:@"Please enter the Subject:" delegate:self cancelButtonTitle:@"Continue" otherButtonTitles:nil];
alert.tag = 0;
alert.alertViewStyle = UIAlertViewStylePlainTextInput;
UITextField * alertTextField = [alert textFieldAtIndex:0];
alertTextField.keyboardType = UIKeyboardTypeNumberPad;
alertTextField.placeholder = @"Enter Subject";
[alert show];
}
当我单击该按钮时,出现以下错误:
warning: Unable to read symbols for /Users/myname/Library/Developer/Xcode/iOS DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/TextInput/Riven.bundle/Riven (file not found).
warning: No copy of Riven.bundle/Riven found locally, reading from memory on remote device. This may slow down the debug session.
这是关于什么的?
I have the following button in my iPad app:
subject = [[UIButton alloc] init];
subject.frame = CGRectMake(710, 5, 180, 30);
[[subject layer] setCornerRadius:8.0f];
[[subject layer] setMasksToBounds:YES];
[[subject layer] setBorderWidth:3.0f];
[[subject layer] setBackgroundColor:[[UIColor greenColor] CGColor]];
subject.titleLabel.font = [UIFont boldSystemFontOfSize:20];
[subject setTitleColor:[UIColor redColor] forState:UIControlStateNormal];
[subject setTitleColor:[UIColor whiteColor] forState:UIControlEventAllEvents];
[subject addTarget:self action:@selector(subjectPressed) forControlEvents:UIControlEventTouchUpInside];
[subject setTitle:@"Subject: ?" forState:UIControlStateNormal];
[[subject layer] setBorderColor:[[UIColor greenColor] CGColor]];
[self.view addSubview:subject];
Here is the function that gets called when I click the button:
- (void)subjectPressed {
UIAlertView * alert = [[UIAlertView alloc] initWithTitle:@"Subject" message:@"Please enter the Subject:" delegate:self cancelButtonTitle:@"Continue" otherButtonTitles:nil];
alert.tag = 0;
alert.alertViewStyle = UIAlertViewStylePlainTextInput;
UITextField * alertTextField = [alert textFieldAtIndex:0];
alertTextField.keyboardType = UIKeyboardTypeNumberPad;
alertTextField.placeholder = @"Enter Subject";
[alert show];
}
When I click the button, I get the following error:
warning: Unable to read symbols for /Users/myname/Library/Developer/Xcode/iOS DeviceSupport/5.0.1 (9A405)/Symbols/System/Library/TextInput/Riven.bundle/Riven (file not found).
warning: No copy of Riven.bundle/Riven found locally, reading from memory on remote device. This may slow down the debug session.
What's this about?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试删除以下文件夹中的文件:
重新启动 Xcode 并将 iPad 重新插入。
另一个类似的问题:
警告:无法读取符号
Try deleting the files in the following folder:
Restart Xcode and plug your iPad back in.
Another similar question:
warning: Unable to read symbols