Details
Unable to install "**"
Domain: com.apple.dtdevicekit
Code: -402620394
--
The executable was signed with invalid entitlements.
Domain: com.apple.dtdevicekit
Code: -402620394
Failure Reason: The entitlements specified in your application’s Code Signing Entitlements file are invalid, not permitted, or do not match those specified in your provisioning profile. (0xE8008016).
User Info: {
DVTRadarComponentKey = 487927;
"com.apple.dtdevicekit.stacktrace" = (
0 DTDeviceKitBase 0x000000011ed866e7 DTDKCreateNSError + 109
1 DTDeviceKitBase 0x000000011ed86de9 DTDK_AMDErrorToNSError + 792
2 DTDeviceKitBase 0x000000011edc656a __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 164
3 DVTFoundation 0x000000010479b156 DVTInvokeWithStrongOwnership + 73
4 DTDeviceKitBase 0x000000011edc6301 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1589
5 IDEiOSSupportCore 0x000000011ec5fa25 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.352 + 4523
6 DVTFoundation 0x00000001048cc3ba DVT_CALLING_CLIENT_BLOCK + 7
7 DVTFoundation 0x00000001048cda92 __DVTDispatchAsync_block_invoke + 809
8 libdispatch.dylib 0x00007fff78a555f8 _dispatch_call_block_and_release + 12
9 libdispatch.dylib 0x00007fff78a5663d _dispatch_client_callout + 8
10 libdispatch.dylib 0x00007fff78a5c8e0 _dispatch_lane_serial_drain + 602
11 libdispatch.dylib 0x00007fff78a5d396 _dispatch_lane_invoke + 385
12 libdispatch.dylib 0x00007fff78a656ed _dispatch_workloop_worker_thread + 598
13 libsystem_pthread.dylib 0x00007fff78c96611 _pthread_wqthread + 421
14 libsystem_pthread.dylib 0x00007fff78c963fd start_wqthread + 13
);
}
--
解决方案:
网上常见的解法都是说重置Provisioning Profile,然而并不生效。
正解:项目中多个Targets的证书不匹配,多个targets对应多份证书导致不识别。修改为同一份证书即可