iOS真机调试--Unable to install "": A
真机调试中遇到问题:Unable to install ""
详细错误信息:
Unable to install "xxx"
Domain: com.apple.dtdevicekit
Code: -402620395
--
App installation failed
Domain: com.apple.dtdevicekit
Code: -402620395
Failure Reason: A valid provisioning profile for this executable was not found.
Details
Unable to install "xxx"
Domain: com.apple.dtdevicekit
Code: -402620395
--
App installation failed
Domain: com.apple.dtdevicekit
Code: -402620395
Failure Reason: A valid provisioning profile for this executable was not found.
User Info: {
DVTRadarComponentKey = 487927;
"com.apple.dtdevicekit.stacktrace" =(
0 DTDeviceKitBase 0x00000001229076e7 DTDKCreateNSError + 109
1 DTDeviceKitBase 0x0000000122907de9 DTDK_AMDErrorToNSError + 792
2 DTDeviceKitBase 0x000000012294756a __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 164
3 DVTFoundation 0x000000010ad33c12 DVTInvokeWithStrongOwnership + 73
4 DTDeviceKitBase 0x0000000122947301 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]+ 1589
5 IDEiOSSupportCore 0x00000001227cfa25 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation)processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.352 + 4523
6 DVTFoundation 0x000000010ae64e7a __DVT_CALLING_CLIENT_BLOCK__ + 7
7 DVTFoundation 0x000000010ae66552 __DVTDispatchAsync_block_invoke + 809
8 libdispatch.dylib 0x00007fff63732583 _dispatch_call_block_and_release + 12
9 libdispatch.dylib 0x00007fff6373350e _dispatch_client_callout + 8
10 libdispatch.dylib 0x00007fff63738ace _dispatch_lane_serial_drain + 597
11 libdispatch.dylib 0x00007fff63739452 _dispatch_lane_invoke + 363
12 libdispatch.dylib 0x00007fff63742a9e _dispatch_workloop_worker_thread + 598
13 libsystem_pthread.dylib 0x00007fff6398d6fc _pthread_wqthread + 290
14 libsystem_pthread.dylib 0x00007fff6398c827 start_wqthread + 15
);
}
--
A valid provisioning profile for this executable was not found
解决方案:打开Xcode -> Window -> Devices and Simulators ,选中调试设备,右键选择 Show Provisioning Profiles... 查看与当前调试证书是否一致,不一致则删除重新编译,或选择手动添加当前证书(针对不勾选 Automatically manage signing)