xcode 13.4.1 watchApp install in device. code: -402620392 The certificate used to sign "watchAppName" has either expired or has been revoked. An updated certificate is required to sign and install the application.

I added the watch app as a target to the existing ios app. The build works fine, but when I try to install it on a real device, I keep getting the same error. How can I solve this?

Unable to install "watchAppName" Domain: com.apple.dt.MobileDeviceErrorDomain Code: -402620392 Recovery Suggestion: The certificate used to sign "watchAppName" has either expired or has been revoked. An updated certificate is required to sign and install the application. User Info: {   DVTErrorCreationDateKey = "2022-10-31 07:36:24 +0000";   IDERunOperationFailingWorker = IDEInstalliPhoneLauncher; }

The identity used to sign the executable is no longer valid. Domain: com.apple.dt.MobileDeviceErrorDomain Code: -402620392 User Info: {   DVTRadarComponentKey = 487925;   MobileDeviceErrorCode = "(0xE8008018)";   "com.apple.dtdevicekit.stacktrace" = ( 0  DTDeviceKitBase           0x000000011e2d9614 DTDKCreateNSErrorFromAMDErrorCode + 272 1  DTDeviceKitBase           0x000000011e312dd8 __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 160 2  DVTFoundation            0x00000001067d5bd0 DVTInvokeWithStrongOwnership + 76 3  DTDeviceKitBase           0x000000011e312b30 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1336 4  IDEiOSSupportCore          0x000000011ce51590 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.301 + 2916 5  DVTFoundation            0x00000001068fcf50 DVT_CALLING_CLIENT_BLOCK + 16 6  DVTFoundation            0x00000001068fe068 __DVTDispatchAsync_block_invoke + 364 7  libdispatch.dylib          0x00000001c12a65f0 _dispatch_call_block_and_release + 32 8  libdispatch.dylib          0x00000001c12a81b4 _dispatch_client_callout + 20 9  libdispatch.dylib          0x00000001c12af8a8 _dispatch_lane_serial_drain + 668 10 libdispatch.dylib          0x00000001c12b0404 _dispatch_lane_invoke + 392 11 libdispatch.dylib          0x00000001c12bac98 _dispatch_workloop_worker_thread + 648 12 libsystem_pthread.dylib       0x00000001c1468360 _pthread_wqthread + 288 13 libsystem_pthread.dylib       0x00000001c1467080 start_wqthread + 8 ); }

Analytics Event: com.apple.dt.IDERunOperationWorkerFinished : {   "device_model" = "Watch5,1";   "device_osBuild" = "8.7 (19U66)";   "device_platform" = "com.apple.platform.watchos";   "launchSession_schemeCommand" = Run;   "launchSession_state" = 1;   "launchSession_targetArch" = arm64e;   "operation_duration_ms" = 48930;   "operation_errorCode" = "-402620392";   "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" = 1;   "param_destination_platform" = "com.apple.platform.watchos";   "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.watchapp2";   "param_runnable_swiftVersion" = "5.6.1";   "param_runnable_type" = 2;   "param_testing_launchedForTesting" = 0;   "param_testing_suppressSimulatorApp" = 0;   "param_testing_usingCLI" = 0;   "sdk_canonicalName" = "iphoneos15.5";   "sdk_osVersion" = "15.5";   "sdk_variant" = iphoneos; }

xcode 13.4.1 watchApp install in device. code: -402620392 The certificate used to sign "watchAppName" has either expired or has been revoked. An updated certificate is required to sign and install the application.
 
 
Q