环境:
macOS Version 10.15.5 (Build 19F101)
Xcode 11.5 (16139)
Xcode错误代码如下:
Details
Unable to install "adultsys"
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402620383
--
The maximum number of apps for free development profiles has been reached.
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402620383
User Info: {
DVTRadarComponentKey = 487925;
MobileDeviceErrorCode = "(0xE8008021)";
"com.apple.dtdevicekit.stacktrace" = (
0 DTDeviceKitBase 0x000000011b19681a DTDKCreateNSErrorFromAMDErrorCode + 233
1 DTDeviceKitBase 0x000000011b1d7f70 __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 155
2 DVTFoundation 0x0000000101f9a155 DVTInvokeWithStrongOwnership + 73
3 DTDeviceKitBase 0x000000011b1d7ca8 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1654
4 IDEiOSSupportCore 0x000000011b04ee91 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.352 + 4165
5 DVTFoundation 0x00000001020cd7f4 __DVT_CALLING_CLIENT_BLOCK__ + 7
6 DVTFoundation 0x00000001020cf436 __DVTDispatchAsync_block_invoke + 1194
7 libdispatch.dylib 0x00007fff713fd6c4 _dispatch_call_block_and_release + 12
8 libdispatch.dylib 0x00007fff713fe658 _dispatch_client_callout + 8
9 libdispatch.dylib 0x00007fff71403c44 _dispatch_lane_serial_drain + 597
10 libdispatch.dylib 0x00007fff714045d6 _dispatch_lane_invoke + 363
11 libdispatch.dylib 0x00007fff7140dc09 _dispatch_workloop_worker_thread + 596
12 libsystem_pthread.dylib 0x00007fff71658a3d _pthread_wqthread + 290
13 libsystem_pthread.dylib 0x00007fff71657b77 start_wqthread + 15
);
}
--
System Information
macOS Version 10.15.5 (Build 19F101)
Xcode 11.5 (16139)
解决方法:
在stackoverflow 搜索免费开发配置文件的最大应用数,的解决办法,其中解决办法如:
- 清除所有预配配置文件,窗口 >> 设备和模拟器 >> 右键单击设备。
- 从计算机中取消配对 iPhone 并重新配对。
- 从 Xcode 中删除我的免费开发人员帐户并重新登录。
- 重新启动计算机
- 已清理项目
等操作都无法解决问题,找到一篇: The maximum number of apps for free development profiles has been reached 找到了解决思路。
最终解决办法:
将iPhone中所以自带的应用升级到最新版本,即可解决Unable to install "xx" 相关问题。
额外发现:
通过升级系统自带的应用后,莫名的解决了 dyld: Library not loaded: @rpath/xxx/xxx 相关问题,比我的这篇文章:dyld: Library not loaded: @rpath/xxx/xxx 错误解决
的解决方案还要好,而且不需要去修改项目的任何配置。
网友评论