I have an app all running fine and all of a sudden, I run into this error.
I was pretty sure that it was working 1 second ago so all I did was to delete the derived data(File> project setting to find out the path for the folder) of this app and build the app again. And it magically start working again...
Hope this helps!