iPad 上的 I/O - 错误

发布于 2025-01-05 02:14:19 字数 1678 浏览 0 评论 0原文

我的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

带刺的爱情 2025-01-12 02:14:19

尝试删除以下文件夹中的文件:

/Developer/Platforms/iPhoneOS.platform/DeviceSupport/

重新启动 Xcode 并将 iPad 重新插入。

另一个类似的问题:

警告:无法读取符号

Try deleting the files in the following folder:

/Developer/Platforms/iPhoneOS.platform/DeviceSupport/

Restart Xcode and plug your iPad back in.

Another similar question:

warning: Unable to read symbols

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文