Xcode无法使用所选设备运行 [英] Xcode cannot run using the selected device

查看:102
本文介绍了Xcode无法使用所选设备运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试运行Xcode iOS项目时收到以下错误:

I am receiving the following error when I try to run my Xcode iOS project:

Xcode cannot run using the selected device. Choose a destination with a supported architecture in order to run on this device.

我有一段时间没有这个错误。我能够通过使用实际设备而不是模拟器来绕过它,但现在这也无效。自创建项目以来,我没有更改项目中的单个设置,我所改变的只是代码本身。这也发生在以前,我修复它的唯一方法是创建一个新项目并从头开始,现在又从那里开始。我很沮丧!我不知道该怎么做。我需要提供哪些信息来帮助诊断?我正在使用facebook sdk 3.1,如果这意味着什么。

I have had this error for a while now. I was able to get around it by using an actual device instead of a simulator, but now that doesn't work either. I haven't changed a single setting in the project since creating it, all that I have changed is the code itself. This has also happened before and the only way I fixed it was to create a new project and start from scratch and now it is happening again from that. I am so frustrated! I have no idea what to do. What info do I need to provide to help diagnose this? I am using the facebook sdk 3.1 if that means anything.

谢谢

推荐答案


  • 使用清理,清理文件夹,删除派生数据清理项目。

  • 从管理方案中删除所有方案。重新创建它们,并使用包含iPhone模拟器版本(之前工作的版本)的任何一个进行构建。

  • 如果没有不用了,试试这个:

    If that doesn't work, try this:


    • 使用Clean,Clean文件夹清理项目,删除派生数据。

    • 使用您喜欢的编辑器,尝试清除project.pbxproj文件中的所有配置文件字符串(使用显示包内容命令打开xcode项目时看到的那个)。

    见下图 - 你必须删除包含'Provisioning Profile'的所有行,直到;字符。

    See below image - you must delete all lines containing 'Provisioning Profile' till the ; character.


    • 然后重启xcode。使用自动配置文件选择器选择配置文件,并使用iphone模拟器方案构建。

    这篇关于Xcode无法使用所选设备运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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