当我在我的应用中创建短信时,我会收到一些奇怪的日志消息,我不明白。我在网上浏览了一下解决方案,但我找不到任何东西。这些是打印的消息:
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];
}
答案 0 :(得分:1)
显然,这是一个众所周知的问题。您可以阅读以下帖子:
Unable to read symbols warning after updating to 4.3.3
iPhone app crashes on device, File not found
libXcodeDebuggerSupport.dylib is missing in iOS 4.2.1 development SDK
虽然没有一个解决方案适合我。
然而,搜索苹果开发者论坛会从苹果支持团队中得到以下答案:
在此搜索详细信息,但简短的回答是您可以忽略......
我猜这是一个已知的错误,不会导致任何问题 - 代码工作正常,除了警告。
顺便说一句,如果它真的困扰你,你可以通过简单地从以下位置复制文件IOKit来消除至少第一个警告:
/Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.3.3(8J2)/Symbols/System/Library/Frameworks/IOKit.framework/Versions/A
为:
/Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.3.3(8J2)/ Symbols / System / Library / Frameworks /
(或者你使用的框架而不是4.3.3)