A build only device cannot be used to run this target异常

A build only device cannot be used to run this target.
原因
1)
DeploymentTarget适配的硬件设备环境版本号选择出错
在这里插入图片描述
Generic iOS Device适用于ipa产品打包 不用于USB联调(USB联调选择真机设备)

2)可以手动添加需要的设备
步骤为:启动Xcode,选择菜单Window->Devices,然后弹出窗口,点击左下角的 + 添加需要的设备即可。

发布了121 篇原创文章 · 获赞 4 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/yanhaijunyan/article/details/105271519