美文网首页
2023-02-23 真机启动错误Could not launc

2023-02-23 真机启动错误Could not launc

作者: 我是小胡胡123 | 来源:发表于2023-02-22 11:48 被阅读0次

App真机启动报错:

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

image.png

完整错误日志:

Showing All Messages

Launch flutter-app

Platform: iOS

Operating System Version: 16.0 (20A362)

Model: iPhone 12 (iPhone13,2)

Install Actions
huchu is prepared for development

Installing on huchu

Successfully installed

Environment variables:
LLVM_PROFILE_FILE=/dev/null
__XPC_LLVM_PROFILE_FILE=/dev/null
OS_ACTIVITY_DT_MODE=YES
PERFC_SUPPRESS_SYSTEM_REPORTS=1
SWIFTUI_VIEW_DEBUG=287
SQLITE_ENABLE_THREAD_ASSERTIONS=1
METAL_DEVICE_WRAPPER_TYPE=1
NSUnbufferedIO=YES
METAL_DEBUG_ERROR_MODE=0
CA_ASSERT_MAIN_THREAD_TRANSACTIONS=0
DYLD_LIBRARY_PATH=/usr/lib/system/introspection
DYLD_INSERT_LIBRARIES=/usr/lib/libBacktraceRecording.dylib:/usr/lib/libMainThreadChecker.dylib:/usr/lib/libRPAC.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib
CA_DEBUG_TRANSACTIONS=0

Launching debugserver and waiting for com.test.1 to attach

Successfully launched flutter-app

View debugging: enabled
Insert view debugging dylib on launch: enabled
Queue debugging: enabled
Memory graph on resource exception: disabled
Address sanitizer: disabled
Thread sanitizer: disabled

Using LLDBRPC, LLDB framework is from /Applications/Xcode.app/Contents/SharedFrameworks

Device support directory: /Users/a58/Library/Developer/Xcode/iOS DeviceSupport/16.0 (20A362) arm64e/Symbols

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

Analytics Event: com.apple.dt.IDERunOperationWorkerFinished : {
    "device_model" = "iPhone13,2";
    "device_osBuild" = "16.0 (20A362)";
    "device_platform" = "com.apple.platform.iphoneos";
    "launchSession_schemeCommand" = Run;
    "launchSession_state" = 1;
    "launchSession_targetArch" = arm64;
    "operation_duration_ms" = 16145;
    "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_checker_tpc_enable" = 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_type" = 2;
    "param_testing_launchedForTesting" = 0;
    "param_testing_suppressSimulatorApp" = 0;
    "param_testing_usingCLI" = 0;
    "sdk_canonicalName" = "iphoneos16.0";
    "sdk_osVersion" = "16.0";
    "sdk_variant" = iphoneos;
}
--
Could not launch “flutter-app”
Activity Log Complete    2023/2/23, 10:06    32.2 seconds

Adhoc类型的描述文件:

image.png

Development类型的描述文件:


image.png

Adhoc类型用的证书是发布类型:


image.png

Development用的证书是开发类型:


image.png

修改为Development类型描述文件后,真机运行成功。

修改前:


image.png

修改后:

image.png

在运行还是报错:

Unable to install "flutter-app"
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402652994
User Info: {
    IDERunOperationFailingWorker = IDEInstalliPhoneLauncher;
}
--
This application’s application-identifier entitlement does not match that of the installed application. These values must match for an upgrade to be allowed.
Domain: com.apple.dt.MobileDeviceErrorDomain

删除手机上的刚才那个App,重新运行,就没问题了。

相关文章

网友评论

      本文标题:2023-02-23 真机启动错误Could not launc

      本文链接:https://www.haomeiwen.com/subject/rbhakdtx.html