Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run Destination Not Valid For Running Scheme Xcode

Tags:

c++

c

xcode

ide

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'.

like image 796
timtour97 Avatar asked Oct 13 '15 05:10

timtour97


People also ask

How do I select a running destination in Xcode?

Connect the device to your Mac, and choose the device in the run destination menu. For macOS versions of an iPad app, choose My Mac (the Mac running Xcode) as the device.

What is iOS deployment target in Xcode?

A deployment target is nothing more than the minimum version of the operating system the application can run on. Fire up Xcode and create a new project by choosing the App template from the iOS > Application section.


2 Answers

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.

Base SDK set to 10.10 in this example

like image 198
maggix Avatar answered Sep 22 '22 09:09

maggix


In my case, I had the same issue when I duplicated and renamed a project. I solved by setting the Build Target in the Scheme Edit view. enter image description here

like image 43
winner.ktw Avatar answered Sep 24 '22 09:09

winner.ktw