美文网首页
Could not inspect the applicatio

Could not inspect the applicatio

作者: Joymerry | 来源:发表于2022-10-24 22:31 被阅读0次

问题描述:
build success,但是提示Unable to install “your project”,点击“details”,会显示Could not inspect the application package.

Details

Unable to install "RenMinXueXi"
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402653103
User Info: {
    DVTErrorCreationDateKey = "2022-10-25 13:57:47 +0000";
    IDERunOperationFailingWorker = IDEInstalliPhoneLauncher;
}
--
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                     0x0000000128058c90 DTDKCreateNSErrorFromAMDErrorCode + 235
    1   DTDeviceKitBase                     0x00000001280952ee __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 155
    2   DVTFoundation                       0x000000010be9d1c9 DVTInvokeWithStrongOwnership + 71
    3   DTDeviceKitBase                     0x0000000128095016 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1409
    4   IDEiOSSupportCore                   0x000000013b51d888 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.301 + 3520
    5   DVTFoundation                       0x000000010bfd2769 __DVT_CALLING_CLIENT_BLOCK__ + 7
    6   DVTFoundation                       0x000000010bfd327d __DVTDispatchAsync_block_invoke + 196
    7   libdispatch.dylib                   0x00007ff81f58d0cc _dispatch_call_block_and_release + 12
    8   libdispatch.dylib                   0x00007ff81f58e317 _dispatch_client_callout + 8
    9   libdispatch.dylib                   0x00007ff81f594317 _dispatch_lane_serial_drain + 672
    10  libdispatch.dylib                   0x00007ff81f594dfd _dispatch_lane_invoke + 366
    11  libdispatch.dylib                   0x00007ff81f59eeee _dispatch_workloop_worker_thread + 753
    12  libsystem_pthread.dylib             0x00007ff81f741fd0 _pthread_wqthread + 326
    13  libsystem_pthread.dylib             0x00007ff81f740f57 start_wqthread + 15
);
}
--

Analytics Event: com.apple.dt.IDERunOperationWorkerFinished : {
    "device_model" = "iPhone9,1";
    "device_osBuild" = "15.7 (19H12)";
    "device_platform" = "com.apple.platform.iphoneos";
    "launchSession_schemeCommand" = Run;
    "launchSession_state" = 1;
    "launchSession_targetArch" = arm64;
    "operation_duration_ms" = 9906;
    "operation_errorCode" = "-402653103";
    "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_checker_tpc_enable" = 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_type" = 2;
    "param_testing_launchedForTesting" = 0;
    "param_testing_suppressSimulatorApp" = 0;
    "param_testing_usingCLI" = 0;
    "sdk_canonicalName" = "iphoneos16.0";
    "sdk_osVersion" = "16.0";
    "sdk_variant" = iphoneos;
}
--


System Information

macOS Version 12.6 (Build 21G115)
Xcode 14.0.1 (21336) (Build 14A400)
Timestamp: 2022-10-25T21:57:47+08:00

真机调试iOS 15.7,之前没有出现这种问题,只是换了一台电脑,代码确定没问题,因为构建成功。这种问题我翻看各种文档,都不知道具体错误原因。

有人推荐Product——Clean Build Folder,去清除DerivedData,我这边都没有效果,这个问题可能每个人遇到的原因不一样。所以,当遇到这个问题的时候,回想一下自己做过的操作,然后一步一步回退或者重新导入,只能是一步一步慢慢排查处理。
我这里是因为Pods文件夹的问题,因为第三方库比较多,我直接远程打包发过来的Pods文件夹,引入之后,进行pod install,项目就一直出现这个问题,后来,我重新删除Pods文件夹,在此引入安装之后运行正常。

相关文章

网友评论

      本文标题:Could not inspect the applicatio

      本文链接:https://www.haomeiwen.com/subject/zqezartx.html