PDA

View Full Version : _NSAutoreleaseNoPool() compile error when adding MessageUI.framework




roeik
Nov 17, 2009, 07:51 AM
When I add the MessageUI framework I am getting the following error on the debugger:

MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/MailToAttachmentMessageUI.dylib
warning: Unable to read symbols for "/Library/MobileSubstrate/DynamicLibraries/MailToAttachmentMessageUI.dylib" (file not found).
2009-11-17 15:32:46.950 iDiamonds Consumers[578:207] *** _NSAutoreleaseNoPool(): Object 0x10cb40 of class NSPathStore2 autoreleased with no pool in place - just leaking
Stack: (0x3057251f 0x3054601b 0x30547ad1 0x30548a8d 0x3054871d 0x305485a3 0x30549fbd 0x328ba8d0 0x30012094 0x30011dc8 0x300119a8 0x30012f2c 0x2033c 0x20584 0x5cc14 0x2fe0eac4 0x2fe0eafc 0x2fe0c318 0x2fe0c69c 0x2fe02260 0x2fe0a3f4 0x31d4a9cc 0x1fb9c 0x2fe0e9e8 0x2fe0c318 0x2fe0c69c 0x2fe02800 0x2fe0823c 0x2fe01904 0x2fe01050)
2009-11-17 15:32:46.970 iDiamonds Consumers[578:207] *** _NSAutoreleaseNoPool(): Object 0x10d2e0 of class NSPathStore2 autoreleased with no pool in place - just leaking
Stack: (0x3057251f 0x3054601b 0x30547ad1 0x3054708f 0x30549c19 0x30548653 0x30549fbd 0x328ba8d0 0x30012094 0x30011dc8 0x300119a8 0x30012f2c 0x2033c 0x20584 0x5cc14 0x2fe0eac4 0x2fe0eafc 0x2fe0c318 0x2fe0c69c 0x2fe02260 0x2fe0a3f4 0x31d4a9cc 0x1fb9c 0x2fe0e9e8 0x2fe0c318 0x2fe0c69c 0x2fe02800 0x2fe0823c 0x2fe01904 0x2fe01050)
MS:Warning: message not found [MailComposeController _setupForMessageWithURL:]

I only get the error when I am compiling on the device. When you compile on the simulator it doesn't appear. Any idea why?

Thanks.



ghayenga
Nov 17, 2009, 08:03 AM
Library/MobileSubstrate/DynamicLibraries/MailToAttachmentMessageUI.dylib" (file not found).

I'm fairly sure the file above doesn't exist on the iPhone at that path. Perhaps you linked the framework in as an absolute path by mistake?

jnic
Nov 17, 2009, 08:05 AM
Those aren't errors, they're warnings. You're leaking memory. Post code or run it through a static analysis tool or Leaks.

MS:Notice: Loading: /Library/MobileSubstrate/DynamicLibraries/MailToAttachmentMessageUI.dylib
warning: Unable to read symbols for "/Library/MobileSubstrate/DynamicLibraries/MailToAttachmentMessageUI.dylib" (file not found).

That's being caused by your iPhone being Jailbroken, not by your code. Nothing to worry about.

PhoneyDeveloper
Nov 17, 2009, 08:17 AM
Are you trying to load the mail UI from a background thread? Don't do that.

roeik
Nov 17, 2009, 08:41 AM
I'm fairly sure the file above doesn't exist on the iPhone at that path. Perhaps you linked the framework in as an absolute path by mistake?

Yes, sorry. I meant warnings!


I added it using the menu on xcode (right click on frameworks folder->Add -> existing framework), so I am not sure if I it is using absolute link or now.

And I don't think the problem is with my code. It gives me this error just when you I add the framework (when I delete the framework the warnings disappear).