XCode不会将我的iPhone设置为活动方案 [英] XCode won't set my iPhone as active scheme

查看:70
本文介绍了XCode不会将我的iPhone设置为活动方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只想查看我的应用在首次启动时的行为,因此我从iPhone(iOS 4.3)中删除了它,现在XCode将显示"iOS device"作为活动方案,并且当我从列表中手动选择iPhone时,我收到一条错误消息(从屏幕顶部滚动),提示Could not launch project1 No such file or directory (/Users/portal/Library/Developer/Xcode/DerivedData/project1-cfjhjgezzcapwoadaivpptyywptu/Build/Products/Debug-iphoneos/project1.app/project

I only wanted to see how my app behaves on first launch, so I deleted it from my iPhone(iOS 4.3), now XCode would show "iOS device" as the active scheme, and when I manually select my iPhone from the list, I get an error (scrolling from the top of the screen) saying Could not launch "project1" No such file or directory (/Users/portal/Library/Developer/Xcode/DerivedData/project1-cfjhjgezzcapwoadaivpptyywptu/Build/Products/Debug-iphoneos/project1.app/project

可能会发生什么? 我可以在iPod(iOS 6)上安装该应用程序.

What might have happened? I CAN install the app on my iPod (iOS 6) though.

推荐答案

通过执行以下步骤,删除该项目的派生数据目录:

Delete your derived data directory for this project, by doing the following steps:

关闭项目,但保持Xcode打开.转到组织者"->项目.在左侧,选择您的项目,然后单击删除"按钮以获取派生数据.

Close the project, but keep Xcode opened. Go to "Organizer" -> Projects. On the left side, select your project and then click the "Delete" button for the derived data.

一旦消失,打开项目,运行产品->清洁并尝试重新部署.

Once it's gone, open up the project, run a Product -> Clean and try to redeploy.

如果删除"按钮显示为灰色,请单击派生目录路径右侧的小箭头(这将打开Finder).关闭Xcode,然后将该目录发送到回收站.重新启动Xcode,在项目上运行产品"->清理",然后尝试重新部署.

If the 'delete' button is greyed out, click on the little arrow to the right of the derived directory path (this will open up Finder). Shut down Xcode, and then send that directory to the trash. Restart Xcode, run a Product -> Clean on the project and try to redeploy.

这篇关于XCode不会将我的iPhone设置为活动方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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