【问题标题】:Xcode "failed to get the task for process -1"Xcode“未能获得进程-1的任务”
【发布时间】:2021-10-02 13:19:46
【问题描述】:

由于该错误,几周以来我无法从 Xcode 在 iOS 上启动应用程序,并且登录详细信息是:

Details

Could not launch “Wui”
Domain: IDEDebugSessionErrorDomain
Code: 3
Failure Reason: failed to get the task for process -1
User Info: {
    DVTRadarComponentKey = 855031;
    IDERunOperationFailingWorker = DBGLLDBLauncher;
    RawUnderlyingErrorMessage = "failed to get the task for process -1";
}
--

Analytics Event: com.apple.dt.IDERunOperationWorkerFinished : {
    "device_isWireless" = 1;
    "device_model" = "iPhone11,2";
    "device_osBuild" = "15.0 (19A346)";
    "device_platform" = "com.apple.platform.iphoneos";
    "launchSession_schemeCommand" = Run;
    "launchSession_state" = 1;
    "launchSession_targetArch" = arm64;
    "operation_duration_ms" = 11207;
    "operation_errorCode" = 3;
    "operation_errorDomain" = IDEDebugSessionErrorDomain;
    "operation_errorWorker" = DBGLLDBLauncher;
    "operation_name" = IDEiPhoneRunOperationWorkerGroup;
    "param_consoleMode" = 0;
    "param_debugger_attachToExtensions" = 0;
    "param_debugger_attachToXPC" = 1;
    "param_debugger_type" = 5;
    "param_destination_isProxy" = 0;
    "param_destination_platform" = "com.apple.platform.iphoneos";
    "param_diag_MainThreadChecker_stopOnIssue" = 0;
    "param_diag_MallocStackLogging_enableDuringAttach" = 0;
    "param_diag_MallocStackLogging_enableForXPC" = 1;
    "param_diag_allowLocationSimulation" = 1;
    "param_diag_gpu_frameCapture_enable" = 0;
    "param_diag_gpu_shaderValidation_enable" = 0;
    "param_diag_gpu_validation_enable" = 0;
    "param_diag_memoryGraphOnResourceException" = 0;
    "param_diag_queueDebugging_enable" = 1;
    "param_diag_runtimeProfile_generate" = 0;
    "param_diag_sanitizer_asan_enable" = 0;
    "param_diag_sanitizer_tsan_enable" = 0;
    "param_diag_sanitizer_tsan_stopOnIssue" = 0;
    "param_diag_sanitizer_ubsan_stopOnIssue" = 0;
    "param_diag_showNonLocalizedStrings" = 0;
    "param_diag_viewDebugging_enabled" = 1;
    "param_diag_viewDebugging_insertDylibOnLaunch" = 1;
    "param_install_style" = 0;
    "param_launcher_UID" = 2;
    "param_launcher_allowDeviceSensorReplayData" = 0;
    "param_launcher_kind" = 0;
    "param_launcher_style" = 0;
    "param_launcher_substyle" = 0;
    "param_runnable_appExtensionHostRunMode" = 0;
    "param_runnable_productType" = "com.apple.product-type.application";
    "param_runnable_swiftVersion" = "5.5";
    "param_runnable_type" = 2;
    "param_testing_launchedForTesting" = 0;
    "param_testing_suppressSimulatorApp" = 0;
    "param_testing_usingCLI" = 0;
    "sdk_canonicalName" = "iphoneos15.0";
    "sdk_osVersion" = "15.0";
    "sdk_variant" = iphoneos;
}
--


System Information

macOS Version 11.6 (Build 20G165)
Xcode 13.0 (19234) (Build 13A233)
Timestamp: 2021-10-02T15:12:55+02:00

我尝试过使用和不使用电缆来传输应用程序。 React Native 和 SwiftUI 应用程序的错误相同,构建配置文件不同,重新安装 xcode,清理构建,重新安装 pod,...

我还尝试编辑方案并取消选中“调试可执行文件”,这次应用重新启动了几次,Xcode 说:“无法启动 com.myApp.blabla”

如果有人有想法?

【问题讨论】:

    标签: ios xcode xcode13


    【解决方案1】:
    1. Xcode > 首选项 > 帐户 > 管理证书 > + > Apple 开发
    2. Xcode > 首选项 > 帐户 > 下载手动配置文件

    我遇到了同样的错误。
    通过上面的操作解决了。

    我的背景
    - 上一次构建是在一个月前成功的。
    -我没有更换我的设备。
    -我还没有注册为 Apple Developer Program。

    【讨论】:

      猜你喜欢
      • 2013-09-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-07-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多