Xcode 9错误:"iPhone已拒绝启动请求" [英] Xcode 9 error: "iPhone has denied the launch request"

查看:380
本文介绍了Xcode 9错误:"iPhone已拒绝启动请求"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Xcode beta 9(v4),我试图通过单击播放"按钮来启动该应用程序.我得到一个构建成功"的消息,但是在启动之前,在Xcode中出现了一个弹出消息:

Using Xcode beta 9 (v4), I'm trying to launch the app by clicking on the "play" button. I get a "build succeeded" but right before launching, a popup message appears in Xcode:

"iPhone拒绝了启动请求."

"iPhone has denied the launch request."

它过去一直在工作.它确实可以在模拟器上运行.我重启了我的电脑,iPhone,卸载了应用程序,清理了构建.没了主意.

It used to work yesterday. It does work on the simulator. I've rebooted my computer, the iPhone, uninstall the app, cleaned the build. Running out of ideas.

推荐答案

使用Xcode 9.x或更高版本会发生这种情况.

It happens using Xcode 9.x or newer.

我将此问题追溯到产品方案中的"调试可执行文件"复选框(产品->方案->编辑方案->信息->调试可执行文件复选框).我未选中,并且此操作停止了(以及其他一些奇怪的问题-控制台中没有任何输出).

I tracked this problem down to the "debug executable" checkbox in the product scheme (product->scheme->edit scheme->info->debug executable checkbox). I unchecked that and this stopped happening (as well as a couple other weird issues - no output in console being one).

这篇关于Xcode 9错误:"iPhone已拒绝启动请求"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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