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

查看:21
本文介绍了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天全站免登陆