I got this message when I save data to core data.
NSScanner: nil string argument
I didn’t use any NSScanner method. Where did it come from?
This is a bug? What should I do with it?
Thanks help, please.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From experience, I can say that
-[NSDecimalNumber initWithString:]or+[NSDecimalNumber decimalNumberWithString:]with anilstring is one thing that causes that log message.Set a breakpoint on
-[NSScanner initWithString:]to start with; if you don’t catch it that way, then break on the other ways you might create a scanner, like+scannerWithString:and-[NSConcreteScanner initWithString:]. That’s how I flushed my unwanted log statement out.