当我在我的应用程序中创建一条短信时,出现了一些奇怪的日志消息,我不明白。我在网上四处寻找解决方案,但我找不到任何东西。这些是打印的消息:
warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.3.5 (8L1)/Symbols/System/Library/Frameworks/IOKit.framework/IOKit (file not found).
warning: No copy of IOKit.framework/IOKit found locally, reading from memory on remote device. This may slow down the debug session.
warning: Tried to remove a non-existent library: /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.3.5 (8L1)/Symbols/System/Library/Frameworks/IOKit.framework/IOKit
我该如何解决这些问题?我试图找到一个 IOKit 框架,但似乎没有内置到 Xcode 中。如果我提交我的应用程序,它会因为这些消息而被拒绝吗?
这是我用来创建和显示短信的代码:
- (void)smsLocation:(NSString *)locationDetails
{
if([MFMessageComposeViewController canSendText])
{
MFMessageComposeViewController *smsController = [[MFMessageComposeViewController alloc] init];
smsController.messageComposeDelegate = self;
smsController.body = @"Some text";
[self presentModalViewController:smsController animated:YES];
[smsController release];
}
}
我还有一个委托方法,它是:
- (void)messageComposeViewController:(MFMessageComposeViewController *)controller didFinishWithResult:(MessageComposeResult)result
{
[self becomeFirstResponder];
[self dismissModalViewControllerAnimated:YES];
}