Monthly Archives: August 2015

+[NSDate date]: unrecognized selector sent to class – Why you shouldn’t stub foundation classes

About a month ago I was banging my head against a wall when our Jenkins build box would intermittently crash the unit test job with output like below:

Application Specific Information:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', 
reason: '+[NSDate date]: unrecognized selector sent to class 0x104369f58'
terminating with uncaught exception of type NSException
abort() called

Read More…

 Scroll to top