Xcode无法安装应用Ingine:代码签名版本不支持问题求助
Xcode安装应用失败(错误码-402620375)
运行Xcode向iPhone部署应用时反复出现安装失败,此前重启电脑/重新运行就能解决,但这次已经更新了macOS(12.5.1)和iOS(15.6.1),也重启过设备,问题依然存在。错误核心提示为The code signature version is no longer supported.,完整错误日志如下:
Details Unable to install "Ingine" Domain: com.apple.dt.MobileDeviceErrorDomain Code: -402620375 User Info: { DVTErrorCreationDateKey = "2022-08-31 10:31:47 +0000"; IDERunOperationFailingWorker = IDEInstalliPhoneLauncher; } -- The code signature version is no longer supported. Domain: com.apple.dt.MobileDeviceErrorDomain Code: -402620375 User Info: { DVTRadarComponentKey = 261622; MobileDeviceErrorCode = "(0xE8008029)"; "com.apple.dtdevicekit.stacktrace" = ( 0 DTDeviceKitBase 0x000000010fe589d1 DTDKCreateNSErrorFromAMDErrorCode + 220 1 DTDeviceKitBase 0x000000010fe94ce7 __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 155 2 DVTFoundation 0x00000001097ef7d6 DVTInvokeWithStrongOwnership + 71 3 DTDeviceKitBase 0x000000010fe94a1d -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1422 4 IDEiOSSupportCore 0x0000000112ac9668 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.301 + 3414 5 DVTFoundation 0x00000001099213d4 __DVT_CALLING_CLIENT_BLOCK__ + 7 6 DVTFoundation 0x00000001099224bc __DVTDispatchAsync_block_invoke + 372 7 libdispatch.dylib 0x00007ff81a5260cc _dispatch_call_block_and_release + 12 8 libdispatch.dylib 0x00007ff81a527317 _dispatch_client_callout + 8 9 libdispatch.dylib 0x00007ff81a52d317 _dispatch_lane_serial_drain + 672 10 libdispatch.dylib 0x00007ff81a52ddfd _dispatch_lane_invoke + 366 11 libdispatch.dylib 0x00007ff81a537eee _dispatch_workloop_worker_thread + 753 12 libsystem_pthread.dylib 0x00007ff81a6dafd0 _pthread_wqthread + 326 13 libsystem_pthread.dylib 0x00007ff81a6d9f57 start_wqthread + 15 ); } -- Analytics Event: com.apple.dt.IDERunOperationWorkerFinished : { "device_model" = "iPhone10,6"; "device_osBuild" = "15.6.1 (19G82)"; "device_platform" = "com.apple.platform.iphoneos"; "launchSession_schemeCommand" = Run; "launchSession_state" = 1; "launchSession_targetArch" = arm64; "operation_duration_ms" = 12161; "operation_errorCode" = "-402620375"; "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_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.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; } -- System Information macOS Version 12.5.1 (Build 21G83) Xcode 13.4.1 (20504) (Build 13F100) Timestamp: 2022-08-31T14:31:47+04:00
解决步骤
- 升级Xcode版本:Xcode 13.4.1仅支持到iOS 15.5,当前设备系统是iOS 15.6.1,签名版本不兼容。升级至Xcode 13.5或更高版本即可匹配系统要求
- 重置签名配置:打开项目
Build Settings,将Code Signing Style设为Automatic,确认Development Team选择正确的开发者账号 - 清理构建缓存:按
Command+Shift+K清理项目构建文件,再按Command+Option+Shift+K删除Derived Data,之后重新构建部署 - 重新信任开发者证书:在iPhone的
设置-通用-VPN与设备管理中删除现有开发者证书,重新运行应用后再信任新生成的证书 - 检查签名参数:在
Build Settings中搜索CODE_SIGNING_ALLOWED和CODE_SIGNING_REQUIRED,确保两者均设置为YES
内容的提问来源于stack exchange,提问作者I_Wish_I_was_That_Good
相关产品推荐
相关产品推荐

