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:
You may want to check your scheme. The executable should be asked on launch (You want to select Messages app). Edit Scheme -> Info -> Executable -> Ask on launch (rather than MyApp.app)
I met the same problem,then i fixed it by two steps:
click the New Scheme
, add a new scheme.
click the Manage Schemes
, and delete the old.
then (Although I don't know why) I can run my project!
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.
This happened to me when I was using a beta of xcode 8.1. When I upgraded the app store version of xcode from 8.0 to 8.1 this problem disappeared (and it never happened with 8.0, just the 8.1 beta). Couldn't find a reference to a bug or a fix, but if you're not using the official app store version of xcode it might be worth double checking.