swift - Xcode10.3 中的设备调试问题“iPhone 已拒绝启动请求。内部启动错误:进程启动失败:未指定”
问题描述
运行真机调试时,会出现以下问题。
Could not launch “MY-APP-NAME” iPhone has denied the launch request.
Internal launch error: process launch failed: Unspecified
- 使用 Xcode 10.3 和 Firebase 消息云。
- 在更改配置文件和捆绑 ID 后,会发生这种情况。
- 这使用一年的会员帐户和用于开发的供应配置文件。
- 使用模拟器时,不会出现问题。
- 虽然我改变了:
Product > Scheme > Edit Scheme > Run > Executable to Ask On Launch
,但这没有用。 - 取消选中
Product > Scheme > Edit Scheme > Run > Debug executable
也不起作用。 rm -r ~/Library/MobileDevice/Provisioning\ Profiles/
. 没用。rm -r ~/Library/Developer/CoreSimulator/Devices/
. 对我也不起作用。- 因为这似乎是Provision Profile的问题,所以我尝试修复。但是,我无法找到解决方案。
- 当涉及到另一个新项目时,发生了同样的错误。
- 该问题也发生在另一台设备上。
- 控制台中显示的内容如下:
The process failed to exec
Unable to bootstrap process with bundleID MY-APP-NAME
Unable to get valid task name port right for pid 635
The request was denied by service delegate (SBMainWorkspace) for reason: Unspecified.
Bootstrap failed with error: <NSError: 0x280617810; domain:
BKSProcessErrorDomain; code: 1 (bootstrap-failed); reason: "Failed to start job">
Bootstrapping failed for <FBApplicationProcess: 0x16465a240;
MY-APP-NAME; pid: -1> with error: Error Domain=BKSProcessErrorDomain Code=1 "Unable to bootstrap process with bundleID MY-APP-BUNDLE-ID” UserInfo={NSLocalizedDescription=Unable to bootstrap process with bundleID MY-APP-NAME, BKSProcessExitReason=0, NSLocalizedFailureReason=Failed to start job, NSUnderlyingError=0x28061cb40 {Error Domain=NSPOSIXErrorDomain Code=3 "No such process" UserInfo={NSLocalizedFailureReason=The process failed to exec, NSLocalizedRecoverySuggestion=Consult /var/log/com.apple.xpc.launchd/launchd.log for more information,
NSLocalizedDescription=Unable to get valid task name port right for pid 635}}, BSErrorCodeDescription=bootstrap-failed}
FBSSystemService][0x1555] Error handling open request for MY-APP-NAME: <NSError: 0x281674420; domain: FBSOpenApplicationServiceErrorDomain; code: 1 (RequestDenied); reason: "The request was denied by service delegate (SBMainWorkspace) for reason: Unspecified."> {
description = "The request to open "MY-APP-NAME" failed.";
failureReason = "The request was denied by service delegate (SBMainWorkspace) for reason: Unspecified.";
userInfo = {
FBSOpenApplicationRequestID = <__NSCFNumber: 0xa56f4bb69cbc0302>;
}
underlyingError = <NSError: 0x281674450; domain: FBSOpenApplicationErrorDomain; code: 1 (Unspecified)> {
description = "The operation couldn’t be completed.
(FBSOpenApplicationErrorDomain error 1.)";
};
}
解决方案
如果您在 Signing & Capabilities选项卡下将团队设置为Personal Team并且您没有看到任何错误。所以只剩下一件事了。
- 转到您的设备设置。
- 导航到一般。
- 进入设备管理。
- 信任开发者应用下指定的行。
推荐阅读
- python - 如何在 PySpark 中导入 AnalysisException
- python-3.x - 如果找不到,如何返回“NA”而不是 null
- c++ - C++ 中哪个更快:mod (%) 或其他计数器?
- python - 如何舍入一组数组?我已经尝试过 numpy.round
- python-3.x - 替换文本时的 Flask-Sqlalchemy 数据突变
- java - 如何使用 GitLab CI-CD 克隆 git 存储库或如何在 AWS 服务器上部署 spring-boot 项目?
- phpmailer - 附件中的 PHPMailer 嵌入图像
- r - 网络中的颜色集群成员
- python - 使用迭代器提取张量值
- xaml - UWP、ContentControl DataTemplate 创建子控件的多个实例