【发布时间】:2022-08-24 01:04:42
【问题描述】:
在运行 iOS 15 的物理 iPhone 上运行 Xcode 13 项目时,我收到消息 Unable to install \"App\"。如果我单击“详细信息”,我会看到以下信息(最值得注意的是 The code signature version is no longer supported)。这个问题似乎发生在一些运行 Xcode 12 的人身上。但是,我运行的是 Xcode 13.2.1 和 macOS Monterey 12.1。
我让 Xcode 在我的开发团队下自动管理签名。今天,我在 Apple Developer Console 中编辑了我的 App ID 配置以添加 Sign-in With Apple,并收到以下消息:Adding or removing any capabilities will invalidate any provisioning profiles that include this App ID and they must be regenerated for future use. 我怀疑这是我的问题的原因,但不知道如何解决它.
我尝试过的事情:
- 清理构建文件夹
--generate-entitlement-derin code signing options- Change frameworks to \"Do not Embed\"
- 禁用
automatically manage signing并使用新生成的配置文件 - Refreshed provisioning profiles
Details
Unable to install \"App\"
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402620375
User Info: {
DVTErrorCreationDateKey = \"2022-02-10 03:33:39 +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 0x000000011739c076 DTDKCreateNSErrorFromAMDErrorCode + 220
1 DTDeviceKitBase 0x00000001173da6e8 __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 155
2 DVTFoundation 0x00000001094b1fb4 DVTInvokeWithStrongOwnership + 71
3 DTDeviceKitBase 0x00000001173da432 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1420
4 IDEiOSSupportCore 0x000000011093b9ea __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.292 + 3508
5 DVTFoundation 0x00000001095e698b __DVT_CALLING_CLIENT_BLOCK__ + 7
6 DVTFoundation 0x00000001095e80f7 __DVTDispatchAsync_block_invoke + 931
7 libdispatch.dylib 0x00007ff812d35ad8 _dispatch_call_block_and_release + 12
8 libdispatch.dylib 0x00007ff812d36cc9 _dispatch_client_callout + 8
9 libdispatch.dylib 0x00007ff812d3ccee _dispatch_lane_serial_drain + 696
10 libdispatch.dylib 0x00007ff812d3d7c8 _dispatch_lane_invoke + 366
11 libdispatch.dylib 0x00007ff812d477e1 _dispatch_workloop_worker_thread + 758
12 libsystem_pthread.dylib 0x00007ff812eea074 _pthread_wqthread + 326
13 libsystem_pthread.dylib 0x00007ff812ee8ffb start_wqthread + 15
);
}
--
Analytics Event: com.apple.dt.IDERunOperationWorkerFinished : {
\"device_model\" = \"iPhone12,5\";
\"device_osBuild\" = \"15.2.1 (19C63)\";
\"device_platform\" = \"com.apple.platform.iphoneos\";
\"launchSession_schemeCommand\" = Run;
\"launchSession_state\" = 1;
\"launchSession_targetArch\" = arm64;
\"operation_duration_ms\" = 4457;
\"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.5.2\";
\"param_runnable_type\" = 2;
\"param_testing_launchedForTesting\" = 0;
\"param_testing_suppressSimulatorApp\" = 0;
\"param_testing_usingCLI\" = 0;
\"sdk_canonicalName\" = \"iphoneos15.2\";
\"sdk_osVersion\" = \"15.2\";
\"sdk_variant\" = iphoneos;
}
--
System Information
macOS Version 12.1 (Build 21C52)
Xcode 13.2.1 (19586) (Build 13C100)
Timestamp: 2022-02-09T21:33:39-06:00
-
我想您已经尝试过打开自动签名?如果您从头开始并构建一个新应用程序,是否会出现问题?我的一些项目很旧,并且具有您不会在新应用程序上使用的设置。
-
我试过禁用自动签名。仍然有同样的问题。但是,按照您的建议,从头开始一个新项目似乎可以正常构建和运行。不知道会有什么区别
-
我刚刚重新克隆了这个项目,并且能够构建和运行它。基于此,我猜测 Xcode 有某种特定于项目的缓存导致此问题
-
我有一个新克隆的项目,但仍然出现此错误。也会尝试重新克隆,但不会期待任何东西。