运行目标无效运行Scheme Xcode [英] Run Destination Not Valid For Running Scheme Xcode
问题描述
刚刚下载了Xcode,我正在尝试运行一个简单的C ++文件,以确保一切正常,每当我尝试运行.cpp文件时,我都会得到:运行目标My Mac对于运行方案无效对于我下载的项目,Scheme_Name'。
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'.
推荐答案
对我来说也是如此。在我的情况下,解决方案是改变基本SDK到构建设置中的最新OS X.
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.
为此,请单击左侧导航器中的项目名称,然后单击构建设置
并在主窗口中查找 Base SDK
。
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
.
如果 Base SDK
未显示,请确保在页面顶部的过滤器中选择全部。
If Base SDK
does not show, ensure that "All" is selected in the filter at the top of the page.
这篇关于运行目标无效运行Scheme Xcode的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!