关键词:
真机调试出现 unable to install “xxx”
Details
Unable to install "xxx"
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402620395
User Info:
DVTErrorCreationDateKey = "2022-11-25 06:51:26 +0000";
IDERunOperationFailingWorker = IDEInstalliPhoneLauncher;
--
A valid provisioning profile for this executable was not found.
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402620395
User Info:
DVTRadarComponentKey = 487925;
MobileDeviceErrorCode = "(0xE8008015)";
"com.apple.dtdevicekit.stacktrace" = (
0 DTDeviceKitBase 0x0000000116acd9d1 DTDKCreateNSErrorFromAMDErrorCode + 220
1 DTDeviceKitBase 0x0000000116b09ce7 __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 155
2 DVTFoundation 0x000000010aa027d6 DVTInvokeWithStrongOwnership + 71
3 DTDeviceKitBase 0x0000000116b09a1d -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1422
4 IDEiOSSupportCore 0x00000001123ea668 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.301 + 3414
5 DVTFoundation 0x000000010ab343d4 __DVT_CALLING_CLIENT_BLOCK__ + 7
6 DVTFoundation 0x000000010ab354bc __DVTDispatchAsync_block_invoke + 372
7 libdispatch.dylib 0x00007ff8187d50cc _dispatch_call_block_and_release + 12
8 libdispatch.dylib 0x00007ff8187d6317 _dispatch_client_callout + 8
9 libdispatch.dylib 0x00007ff8187dc317 _dispatch_lane_serial_drain + 672
10 libdispatch.dylib 0x00007ff8187dcdfd _dispatch_lane_invoke + 366
11 libdispatch.dylib 0x00007ff8187e6eee _dispatch_workloop_worker_thread + 753
12 libsystem_pthread.dylib 0x00007ff818989fd0 _pthread_wqthread + 326
13 libsystem_pthread.dylib 0x00007ff818988f57 start_wqthread + 15
);
--
Analytics Event: com.apple.dt.IDERunOperationWorkerFinished :
"device_model" = "iPhone7,1";
"device_osBuild" = "12.5.4 (16H50)";
"device_platform" = "com.apple.platform.iphoneos";
"launchSession_schemeCommand" = Run;
"launchSession_state" = 1;
"launchSession_targetArch" = arm64;
"operation_duration_ms" = 14211;
"operation_errorCode" = "-402620395";
"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.6.1";
"param_runnable_type" = 2;
"param_testing_launchedForTesting" = 0;
"param_testing_suppressSimulatorApp" = 0;
"param_testing_usingCLI" = 0;
"sdk_canonicalName" = "iphoneos15.5";
"sdk_osVersion" = "15.5";
"sdk_variant" = iphoneos;
--
System Information
macOS Version 12.4 (Build 21F79)
Xcode 13.4.1 (20504) (Build 13F100)
Timestamp: 2022-11-25T14:51:26+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设置)
我的是402620395,buile中把release改成debug就可以了
xcode真机调试
xcode真机调试失败:theidentityusedtosigntheexecutableisnolongervalid
在Xcode中突然好久没有使用真机调试了,今天使用真机的时候,出现如下的警告,并真机运行失败:Theidentityusedtosigntheexecutableisnolongervalid.Pleaseverifythatyourdevice‘sclockisproprtlyset,andthatyoursigningcertificateisnotexpi 查看详情
macm1开发实录---xcode真机调试
参考文章Xcode13.1真机调试_淡酒交魂的博客-CSDN博客_xcode真机调试例子我们就用最粗暴的helloworld,然后一步步实现在iphone上运行:1.添加开发账号信息 菜单Xcode-->perferenceAccount-->ManageCertificates 2.项目配置版本和真机ip... 查看详情
ios开发零基础教程之真机调试流程
本讲主要内容:1、真机测试前准备工作2、第一步创建AppID3、第二步创建开发证书DevelopmentCertificate4、第三步打开本地钥匙串创建CSR文件5、第四步添加设备6、第五步创建描述文件7、第六步导出证书给其他人用8、第七步在Xcode... 查看详情
xcode5真机測试
...nbsp;http://my.oschina.net/u/1245365/blog/196420 亲測可用ios申请真机调试(xcode5)具体解析摘要 我们做ios项目时。模拟器仅仅能满足我们一部分的须要。而我们开发的app将来是执行在真机上的,所以用真机调试很有必要。以下介绍怎... 查看详情
xcode8.3真机调试设置
....0之后,普通的Appleid也可以当做开发者账号使用,在进行真机测试时可以直接使用,不用再缴费688进行开发者认证了。我登录了https://devel 查看详情
解决低版本xcode不支持高版本ios真机调试问题
Xcode开发在进行真机调试的时候,遇到了以下问题用Xcode8想真机编译iOS11,弹出提示框ThisiPhone...isrunningiOS11.1.2(11D257),whichmaynotbesupportedbythisversionofXcode...主要原因是在调试前我将iOSSDK升级到了10.1版本,而我的Xcode是8.0版... 查看详情
xcode-vmware虚拟机安装xcode进行iphone真机调试
1、vmware安装黑苹果,然后在appStore安装XCodehttp://blog.csdn.net/forgot2015/article/details/511043292、真机调试证书等申请http://jingyan.baidu.com/article/ff411625b8141312e48237a7.html?qq-pf-to=pcqq.c2c3、vmware识别真机,关机然后设置vm 查看详情
xcode5xcode6免证书真机调试
我们都知道,在iOS开发中,假设要进行真机调试的话是须要苹果开发人员账号的。否则Xcode就不可以进行真机调试。仅仅可以在模拟器上执行;这就带来了非常多问题,比方iCloud编程的话你不可以用模拟器、要用到... 查看详情
xcode12真机调试ios15提示thecodesignatureversionisnolongersupported错误的解决
问题现象用Xcode12连接系统为iOS15的真机调试时出现错误,提示:Thecodesignatureversionisnolongersupported:这是什么原因呢?在不升级Xcode的情况下又该如何解决它呢?Let‘sfindout!问题分析标准方法:升级Xcode仔细观察设备日志中详细的... 查看详情
xcode12真机调试ios15提示thecodesignatureversionisnolongersupported错误的解决
问题现象用Xcode12连接系统为iOS15的真机调试时出现错误,提示:Thecodesignatureversionisnolongersupported:这是什么原因呢?在不升级Xcode的情况下又该如何解决它呢?Let‘sfindout!问题分析标准方法:升级Xcode仔细观察设备日志中详细的... 查看详情
xcode7:让你只需4步就可以免证书进行真机调试了!
...需开发者帐号。好了,既然官方都说了可以不用证书进行真机调试了,那我们就直接开始吧!只需4步,你就可以免证书进行真机调试了! 查看详情
低版本xcode真机调试高版本ios的解决方法
...好,Springboard三天崩溃一次,基本不影响使用。而开发中真机调试问题不少。手头的项目Xcode从9升到10是无法编译通过的,有大量的cannotinvokeinitializerfortype''withnoarguments错误。尝试修改File->WorkspaceSettings->BuildSystem为LegacyB... 查看详情
xcode真机调试报错:thisapplication'sapplication-identifierentitleme
Thisapplication‘sapplication-identifierentitlementdoesnotmatchthatoftheinstalledapplication.Thesevaluesmustmatchforanupgradetobeallowed解决方法:1、Xcode-Window->Devices2、选中你的设备,在右边的ins 查看详情
xcode7怎么真机调试详细步骤
...preference添加appleID登陆,然后打开一个自己的想要运行在真机上的项目,插上iPhone真机,在项目中选择真机作为运行的目的机器,接着为该APP签名,填写一个唯一的bundleID,再点击FixIssue,选择运行即可。联通服务问卷调查¥中... 查看详情
xcode7真机免证书调试cocos2d游戏
...赞.谢谢!hopy;)经过一番实验,如今最终能够在Xcode7上免证书真机调试了:以上是在iPhone6plus上执行的效果,能够明显看到视野大了很多.由于时间关系,我简单说说每一步的操作,在网上也不怎么能搜到,可能太过于简单,大家都懒得说吧;)... 查看详情
xcode7.2如何真机调试ios9.3的设备
在测试iOSapp或者是开发过程中,总会遇到各种各样的升级,比如XCode的升级,MACOS的升级,iOS系统升级,这种种升级,个人比较讨厌的是iOS系统的升级,它总是在你调试代码或者是测试过程中给你弹出一个对话框,如下图:或许... 查看详情
xcodeprovisioningprofileexpires证书过期无法真机调试
...言因为没有加入iOS开发者计划,使用个人ID登录Xcode进行真机调试。某天突然提示BuildFailed,仔细检查报错显示ProvisioningProfileExpires需要renew解决确保Mac已连接到网络打开Xcode项目选择左侧顶端project在右边找到TARGET里面的APP名称选... 查看详情