Question

I'm having some odd log messages come up when I create an sms message in my app, which I don't understand. I've had a look around online for a solutions but I haven't been able to find anything. These are the messages printed:

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

How can I resolve these issues? I tried to find an IOKit framework but there doesn't seem to be one built into Xcode. If I submit my app will it be rejected due to these messages?

Here is the code I'm using to create & show the sms:

- (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];
    }
}

I also have a delegate method which is:

- (void)messageComposeViewController:(MFMessageComposeViewController *)controller didFinishWithResult:(MessageComposeResult)result
{
    [self becomeFirstResponder];
    [self dismissModalViewControllerAnimated:YES];
}
Était-ce utile?

La solution

Apparently, this is a very well known problem. You can read the following posts:

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

Although none of the solutions there worked for me.

However, searching the apple developer forum yields the following answer from one of the apple support team:

Search here for details, but the short answer is you can ignore...

I guess it's a known bug that doesn't cause any problems - the code worked fine except for the warnings.

By the way, if it really bothers you, you can get rid of at least the first warning by simply copying the file IOKit from:

/Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.3.3 (8J2)/Symbols/System/Library/Frameworks/IOKit.framework/Versions/A

to:

/Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.3.3 (8J2)/Symbols/System/Library/Frameworks/

(Or which ever framework you are using instead of 4.3.3)

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top