I am getting the error:
\"A long-running Parse operation is being executed on the main thread. Break on warnParseOperationOnMainThread() to debug.\">
For me this happened when I called:
[[PFUser currentUser] refresh];
The solution was to replace it with:
[[PFUser currentUser] refreshInBackgroundWithBlock:nil];
See also this answer on the Parse Help site.