Xcode cannot run using the selected device. Choose a destination with a supported architecture

本文提供了五种解决Xcode在使用选定设备时出现的架构不匹配问题的方法。包括修改valid architectures、关闭并删除应用、检查product name是否与工程名一致、清除Xcode缓存及重启Xcode等步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Xcode cannot run using the selected device.

Choose a destination with a supported architecture in order to run on this device


第一种:

可能你的 valid architectures支持armv7,或者 armv7s,修改一下,如下图:



第二种:

  1. Close the Xcode
  2. Delete the application from device
  3. Restart the device
  4. then re-run the application

第三种:

如果今天所遇到的问题,检查product name是否和工程名一致(这里可以其实可以不一致),重点检查是否有空格或其它非法字符。


第四种:

  1. cd ~/Library/Developer/Xcode/DerivedData  

跳转到这个目录下,清除里面所有缓存的数据:

  1. ls  
  2. rm -fr *  
然后重启xocde

第五种:compiler



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值