When I create a new project using the \"Messages Application\" template of Xcode 8 and try to run it on iOS simulator, I get the following error:
I had the same issue because I had an empty environment variable set in my current scheme.
I deleted this empty environment variable and was then able to build correctly.