xcode错误:所选的运行目标对该操作无效 [英] xcode error: The selected run destination is not valid for this action

查看:38
本文介绍了xcode错误:所选的运行目标对该操作无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的4.3模拟器和设备中的应用运行良好.现在我想在4.0模拟器中对其进行测试,我也有4.2.1设备.因此,我将ios部署目标设置为4.0(也尝试了4.2),但是xcode告诉我该错误:所选的运行目标对该操作无效.

my app in 4.3 simulator and device work well. Now i want to test it in 4.0 simulator and i have also 4.2.1 device. So i set ios deployment target to 4.0 (tried also 4.2), but xcode give me that error :The selected run destination is not valid for this action.

然后我将第二个iphone添加到配置文件中,并在xcode的设备中看到它进行构建,但又发生了同样的事情:所选的运行目标对该操作无效.

Then i added my second iphone to provisioning profile and i see it in device in xcode for build but same thing: The selected run destination is not valid for this action.

例如,如何阅读(或者如果有人可以解释我的话)在哪里找到如何设置要在4.0 4.2和4.3模拟器中运行的项目?

How can i read (or if one can explain me) where to find how to setup project for run in 4.0 4.2 and 4.3 simulator for example?

我也在管理方案中尝试单击各处",但找不到任何有用的东西.

I'm trying to "click everywhere" also in manage schemes but can't find nothing usefull.

建议.

推荐答案

您需要同时在Project和Target项目上设置iOS部署目标.单击项目"导航器中的项目图标时,在左侧将分为两个组:项目"和目标".项目将包含您的项目,目标"部分将包含您的应用程序和单元测试目标.在项目设置和目标(应用程序而非测试)设置中设置iOS部署.

You need to set the iOS Deployment Target on both the Project and the Target items. When you click the project icon in the Project navigator, on the left side you will se two groups, Project and Targets. Project will contain your project, and the Targets section will have your app and unit test targets. Set the iOS Deployment on your project settings and in the target (app, not tests) settings.

这篇关于xcode错误:所选的运行目标对该操作无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆