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'.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With