Xcode真机调试之unable to install

当连接真机运行,xcode出现unable to launch xxx,此时我们可以点击detail来查看详情。


image.png

Details
Unable to install "XXX"
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402653103
--
Could not inspect the application package.
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402653103
User Info: {
DVTRadarComponentKey = 282703;
MobileDeviceErrorCode = "(0xE8000051)";
"com.apple.dtdevicekit.stacktrace" = (
0 DTDeviceKitBase 0x000000012459bc8f DTDKCreateNSErrorFromAMDErrorCode + 220
1 DTDeviceKitBase 0x00000001245da241 __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 155
2 DVTFoundation 0x00000001073b464b DVTInvokeWithStrongOwnership + 71
3 DTDeviceKitBase 0x00000001245d9f82 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1440
4 IDEiOSSupportCore 0x000000012444aa10 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.292 + 3513
5 DVTFoundation 0x00000001074e317e DVT_CALLING_CLIENT_BLOCK + 7
6 DVTFoundation 0x00000001074e4da0 __DVTDispatchAsync_block_invoke + 1191
7 libdispatch.dylib 0x00007fff2018d623 _dispatch_call_block_and_release + 12
8 libdispatch.dylib 0x00007fff2018e806 _dispatch_client_callout + 8
9 libdispatch.dylib 0x00007fff201945ea _dispatch_lane_serial_drain + 606
10 libdispatch.dylib 0x00007fff201950ad _dispatch_lane_invoke + 366
11 libdispatch.dylib 0x00007fff2019ec0d _dispatch_workloop_worker_thread + 811
12 libsystem_pthread.dylib 0x00007fff2033545d _pthread_wqthread + 314
13 libsystem_pthread.dylib 0x00007fff2033442f start_wqthread + 15
);
}
--
System Information
macOS Version 11.5 (Build 20G70)
Xcode 12.3 (17715) (Build 12C33)
Timestamp: 2021-08-02T15:41:16+08:00

代码错误
错误代码 可能错误原因
402653103: 错把静态库加载成动态库
402653415: 免费app达到最大数目
402652994: 设备装有相同bundle id的应用
402653150: iOS设备要用xcode12来调试
402653170: 测试设备运行内存不足,退出部分或者所有后台应用试试
402620395: 用dis证书来dev调试
402620375 打包macOS版本低于11,需要更新macOS版本或者设置--generate-entitlement-der(调用codesign之前调用或者在xcode->OTHER_CODE_SIGN_FLAGS设置)

你可能感兴趣的:(Xcode真机调试之unable to install)