swift - Xcode10.3 "iPhone has denied the launch request. Internal launch error: process launch failed: Unspecified"设备调试问题

标签 swift xcode swift4

运行真机调试时,出现如下问题。

Could not launch “MY-APP-NAME” iPhone has denied the launch request.
Internal launch error: process launch failed: Unspecified

error message

  • 使用 Xcode 10.3 和 Firebase Messaging Cloud。
  • 更改配置文件和 bundle ID 后,会发生这种情况。
  • 这使用一年成员(member)帐户Provisioning Profile for Development
  • 使用模拟器时,没有出现这个问题。
  • 尽管我更改了: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 的问题,所以我尝试修复。但是,我无法找到解决方案。
  • 当涉及到另一个新项目时,出现了同样的错误。
  • 此问题也发生在另一台设备上。
  • 控制台显示如下:
    • 进程执行失败
    • 无法使用 bundleID MY-APP-NAME 引导进程
    • 无法获得 pid 635 的有效任务名称端口权
    • 请求被服务委托(delegate) (SBMainWorkspace) 拒绝,原因:未指定。
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,并且您没有看到任何错误。所以只剩下一件事了。

  1. 转到您的设备设置。
  2. 导航到将军。
  3. 转到设备管理。
  4. 信任开发者应用下指定的行。

关于swift - Xcode10.3 "iPhone has denied the launch request. Internal launch error: process launch failed: Unspecified"设备调试问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57979310/

相关文章:

ios - 类型的值没有成员

ios - 什么是 PHImageRequestOptionsResizeMode 默认值?

ios - Sprite 套件在碰撞时获得零值

ios - 将 Swift 框架导入 Obj-C

swift - HealthKit 统计查询中的“尝试转换不兼容的单位”错误(swift)

c - 如何在 Mac 上使用 C I/O 重定向?

objective-c - 我如何在 Xcode 4 上使用弱链接框架?

ios - 台风与 Swift 4 的 AppDelegate 集成

ios - 如何在按住表格 View 单元格时逐渐增加它的大小

ios - 如何在没有 Storyboard的情况下更改 View Controller