I recently ran into this problem. This happened when I ran the asynchronous tests, and I wanted to check if the api calls were made with the correct endpoints and parameters using OCMock.
Turns out it was pretty simple, one of my parameter values was set to a string while it should be int. Make sure everything is set up correctly for the test.
source share