问题
Just downloaded Xcode and I am trying to run a simple C++ file to make sure everything works and whenever I try to run the .cpp file I am given this: "The run destination My Mac is not valid for Running the scheme 'Scheme_Name'.
回答1:
happened the same to me with a project I downloaded. In my case, the solution was to change the "Base SDK" to the latest OS X in the Build Settings.
To do so, click on the project name in the navigator on the left, then on Build Settings
and in the main window you should look for Base SDK
.
If Base SDK
does not show, ensure that "All" is selected in the filter at the top of the page.
来源:https://stackoverflow.com/questions/33094641/run-destination-not-valid-for-running-scheme-xcode