xcode 无法安装“Runner”

b91juud3  于 2023-08-07  发布在  其他
关注(0)|答案(1)|浏览(228)

我升级了我的xcode(14.3)和我的移动的系统(ios16.4),我的项目flutter不起作用。我查了很多资料,都没办法解决。我有两部iPhone,我发现它在iOS14上运行良好,但在iOS16. 4上不行。这让我很困惑,我已经尝试了很多东西,但都没有效果。详情如下:

Unable to install "Runner"
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402653179
User Info: {
DVTErrorCreationDateKey = "2023-04-03 09:24:05 +0000";
IDERunOperationFailingWorker = IDEInstalliPhoneLauncher;
}

Could not write to the device.
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402653179
User Info: {
DVTRadarComponentKey = 261622;
MobileDeviceErrorCode = "(0xE8000005)";
"com.apple.dtdevicekit.stacktrace" = (
0   DTDeviceKitBase                     0x000000010c8a4b1c DTDKCreateNSErrorFromAMDErrorCode + 300
1   DTDeviceKitBase                     0x000000010c8d9000 \__90-\[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:\]\_block_invoke + 136
2   DVTFoundation                       0x0000000103927ac8 DVTInvokeWithStrongOwnership + 76
3   DTDeviceKitBase                     0x000000010c8d8d7c -\[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:\] + 1208
4   IDEiOSSupportCore                   0x000000010cea7ce8 \__118-\[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:\]\_block_invoke.147 + 2340
5   DVTFoundation                       0x0000000103a32428 __DVT_CALLING_CLIENT_BLOCK__ + 16
6   DVTFoundation                       0x0000000103a32e94 \__DVTDispatchAsync_block_invoke + 152
7   libdispatch.dylib                   0x00000001ace6a874 \_dispatch_call_block_and_release + 32
8   libdispatch.dylib                   0x00000001ace6c400 \_dispatch_client_callout + 20
9   libdispatch.dylib                   0x00000001ace73a88 \_dispatch_lane_serial_drain + 668
10  libdispatch.dylib                   0x00000001ace745f8 \_dispatch_lane_invoke + 384
11  libdispatch.dylib                   0x00000001ace7f244 \_dispatch_workloop_worker_thread + 648
12  libsystem_pthread.dylib             0x00000001ad018074 \_pthread_wqthread + 288
13  libsystem_pthread.dylib             0x00000001ad016d94 start_wqthread + 8
);
}

Analytics Event: com.apple.dt.IDERunOperationWorkerFinished : {
"device_model" = "iPhone12,1";
"device_osBuild" = "16.4 (20E247)";
"device_platform" = "com.apple.platform.iphoneos";
"launchSession_schemeCommand" = Run;
"launchSession_state" = 1;
"launchSession_targetArch" = arm64;
"operation_duration_ms" = 2722;
"operation_errorCode" = "-402653179";
"operation_errorDomain" = "com.apple.dt.MobileDeviceErrorDomain";
"operation_errorWorker" = IDEInstalliPhoneLauncher;
"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_testing_launchedForTesting" = 0;
"param_testing_suppressSimulatorApp" = 0;
"param_testing_usingCLI" = 0;
"sdk_canonicalName" = "iphoneos16.4";
"sdk_osVersion" = "16.4";
"sdk_variant" = iphoneos;
}
System Information

macOS Version 13.3 (Build 22E252)
Xcode 14.3 (21812) (Build 14E222b)

字符串
Does not run on a real machine with ios16.4你有过这种情况吗

des4xlb0

des4xlb01#

这是我遇到过的最令人沮丧的错误,但是,我找到了一种方法来获得实际的错误代码来修复这个问题:
1.将目标设备设置为“任何iOS设备”
1.创建产品>存档
1.转到管理器并验证存档
1.它会失败,但会给予你一个实际的理由
1.修好它

相关问题